|
|
How do I configure Apache to utlize an alternate port?
|
|
|
|
Forum Regular
Join Date: Sep 2001
Status:
Offline
|
|
How do I configure Apache to utlize an alternate port? I used to have an ISP that didn't block 8080 so using the built in Apache server was easy and really useful. I switched to Verizon to get their new crazy fiber optic FiOS thing which is great except now 8080 is blocked. I've been lookin around for a while now and havn't been able to find out how to switch it. I've got a little program called iPhotoweb share that shares my photo library working on port 8081 so I know I have other stuff like my DNS stuff set up right. Any help would be greatly appreciated. Thanks in advance.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: May 2004
Status:
Offline
|
|
In terminal:
sudo vi +/Listen /etc/httpd/httpd.conf
Change the Listen directive to whatever port you'd like.
Then restart Apache from the Sharing pane of System Preferences.
|
╭1.5GHz G4 15" PB, 2.0GB RAM, 128MB VRAM, 100GB 7200rpm HD, AEBS, BT kbd
╰2.0GHz T2500 20" iMac, 1.5GB RAM, 128MB VRAM, 250GB 7200rpm HD
http://www.DogLikeNature.com/
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Sep 2001
Status:
Offline
|
|
Thanks a lot for the reply. I got into terminal and I think I see the line I need to change but I don't know how to change it. I know very very little about the terminal.
I want to change the 80 in
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80
to 82. I can move around with the arrow keys and even deleate characters using the small delete key but I can't seem to figure out how to input stuff.
Thanks again.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Sep 2001
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: May 2004
Status:
Offline
|
|
Yes, [FONT="Courier New"]vi[/FONT] is a bit of an acquired taste!
To change a word (in this case the 80), move to the start of the word then type [FONT="Courier New"]cw[/FONT] (change word). Enter the new number and hit escape to stop editing.
Hitting [FONT="Courier New"]ZZ[/FONT] (make sure you use caps for this command) will save and quit [FONT="Courier New"]vi[/FONT].
|
╭1.5GHz G4 15" PB, 2.0GB RAM, 128MB VRAM, 100GB 7200rpm HD, AEBS, BT kbd
╰2.0GHz T2500 20" iMac, 1.5GB RAM, 128MB VRAM, 250GB 7200rpm HD
http://www.DogLikeNature.com/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|