faqts : Computers : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

30 of 33 people (91%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Is there anyway to change the default port (80)? I think that my ISP is blocking this port.

Aug 21st, 2001 14:46
Bruce Christensen, Brent Maloney,


Yes. Apache can listen on any number of ports.
There are two Apache directives that control this: Port and Listen. A
line such as:
    Port 80
in your httpd.conf file tells Apache that its canonical port is port 80.
There can only be one Port line in httpd.conf. However, you can have
Apache attach to any number of additional ports by adding lines like this:
    Listen 9004
    Listen 1234
    etc...
See http://httpd.apache.org/docs-2.0/mod/core.html#port and
http://httpd.apache.org/docs-2.0/mod/core.html#listen for more details.