Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > How do I configure Apache to utlize an alternate port?

How do I configure Apache to utlize an alternate port?
Thread Tools
Peter753
Forum Regular
Join Date: Sep 2001
Status: Offline
Reply With Quote
Jan 8, 2006, 09:11 PM
 
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.
     
Dog Like Nature
Dedicated MacNNer
Join Date: May 2004
Status: Offline
Reply With Quote
Jan 8, 2006, 10:12 PM
 
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/
     
Peter753  (op)
Forum Regular
Join Date: Sep 2001
Status: Offline
Reply With Quote
Jan 9, 2006, 04:55 PM
 
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.
     
Peter753  (op)
Forum Regular
Join Date: Sep 2001
Status: Offline
Reply With Quote
Jan 9, 2006, 04:56 PM
 
Double Post
     
Dog Like Nature
Dedicated MacNNer
Join Date: May 2004
Status: Offline
Reply With Quote
Jan 10, 2006, 12:19 PM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:12 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,