image
image

Go Back   macosx.com > Mac Help Forums > Networking & Compatibility

Reply
 
Thread Tools
  #1  
Old December 30th, 2007, 04:44 AM
utn utn is offline
Registered User
 
Join Date: Oct 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
utn is on a distinguished road
Leopard Web Sharing Question.

How can I change the port which Apache operates on? My ISP blocks the default port 80, so nobody can connect to it. But when I go to my DynDNS address on any of my home LAN computers, the page loads perfectly on Macs and PCs alike. Any advice? I guess I'm sorta a newbie when it comes to the nitty gritty of OS X.

Thanks,
Scott
Reply With Quote
  #2  
Old December 30th, 2007, 11:26 AM
Soulwar's Avatar
Experienced
 
Join Date: Dec 2007
Location: SW FL
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Soulwar is on a distinguished road
Go to system preferences-sharing-firewall; there you can edit and add new ports for your firewall.

Last edited by Soulwar; January 5th, 2008 at 10:51 PM.
Reply With Quote
  #3  
Old December 30th, 2007, 02:17 PM
utn utn is offline
Registered User
 
Join Date: Oct 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
utn is on a distinguished road
My firewall is off, and my ISP is blocking port 80 anyway, I need to change the port which Apache receives incoming requests on.
Reply With Quote
  #4  
Old December 30th, 2007, 02:38 PM
Soulwar's Avatar
Experienced
 
Join Date: Dec 2007
Location: SW FL
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Soulwar is on a distinguished road
Try these 2 links and see if that's what you need.


http://httpd.apache.org/docs/1.3/mod/core.html#port

http://httpd.apache.org/docs/1.3/mod/core.html
Reply With Quote
  #5  
Old December 30th, 2007, 05:38 PM
ElDiabloConCaca's Avatar
U.S.D.A. Prime
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 9,935
Thanks: 2
Thanked 63 Times in 59 Posts
ElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura aboutElDiabloConCaca has a spectacular aura about
If I remember correctly, you can edit the file httpd.conf located here:

/private/etc/apache2/httpd.conf

...and look for the line "Listen 80". Change it to "Listen 8080" (for port 8080) or whatever port you want. Restart the webserver (possibly even restart the computer) and it should work fine. The only caveat is that people from the outside will have to connect to your website via "http://www.mysite.com:8080" instead of just "http://www.mysite.com".
__________________
Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT
MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM
iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k
http://www.jeffhoppe.com
Reply With Quote
  #6  
Old December 30th, 2007, 06:53 PM
Soulwar's Avatar
Experienced
 
Join Date: Dec 2007
Location: SW FL
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Soulwar is on a distinguished road
This link should be everything you need.

http://httpd.apache.org/docs/1.3/mod/core.html
Reply With Quote
  #7  
Old December 31st, 2007, 05:52 AM
utn utn is offline
Registered User
 
Join Date: Oct 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
utn is on a distinguished road
Thanks, I finally got it to work. I changed the port address in both /etc/apache2/httpd.conf and /etc/httpd/httpd.conf (just to be safe) and also the listen IP address to my internal IP then restarted my computer. I then adjusted my DynDNS account to connect to the new port and it works perfectly. Thanks for the help, I hope someone else finds this useful too. Cheers!
Reply With Quote
Reply

Thread Tools

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:50 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.