Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache + HTTPD PORT 1

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
0
0
US
I just found out my isp blocked port 80. How do i go abuot changing the port. What i really want to do is to just add another. Is this possinle under apache??
 
Hi,

You do this with the 'Listen' global directive. You can either just specify the port(s) or ip address + port. For example:

Listen 80
Listen 8080

Listen 172.16.16.1:80
Listen 202.12.13.14:8080

You can have multiple 'listens' as per the above. The last example shows still using port 80 on the lan but port 8080 for the external interface. If you leave the ip out it just listens on all interfaces.

This goes as a global statement in your httpd.conf file.

Regards
 
My ISP does not garentee a static IP address. Is there any way i can change the port for eveerythiny global address and leave it to 80 for local?
 
Hi,

Just do something like this :

Listen 172.16.16.1:80
Listen 8080

It would listen on both 80 & 8080 for the specified interface but only 8080 for other interfaces.


Regards
 
DO i have to chage the "Port" entry in the httpd.conf?

right now it reads:
Port 80
 
Hi,

No, 'BindAddress' and 'Port' are not necessary if you have a 'Listen' directive.
(They basically do the same thing but 'Listen' has a global scope.


Rgds


 
Thanks again for the help ifincham. I'm not sure what i would do without people like you. Thanks Much. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top