Saturday 24 September 2011

How do i change apache's default port on linux? my router uses port 80 too so need to change apache's port!

How do i change apache's default port on linux? my router uses port 80 too so need to change apache's port! my router has a built in modem..if you answer this question can you please tell e step by step i amnewish to linux i have only been using it for 4+ months thankyou
How do i change apache's default port on linux? my router uses port 80 too so need to change apache's port!
Your router, if it even has an outside port, should be using port 8080, not 80. Nevertheless, many ISPs block port 80, and changing the port will protect you somewhat from attacks.



You need to edit the httpd.conf file. There is a port field which should be simple to change.



You might be able to find httpd.conf in /etc/httpd/conf/.
How do i change apache's default port on linux? my router uses port 80 too so need to change apache's port!
http 80/tcp World Wide Web HTTP

http 80/udp World Wide Web HTTP

www 80/tcp World Wide Web HTTP

www 80/udp World Wide Web HTTP

www-http 80/tcp World Wide Web HTTP

www-http 80/udp World Wide Web HTTP



http-mgmt 280/tcp http-mgmt

http-mgmt 280/udp http-mgmt



cddbp-alt8880/tcp CDDBP

cddbp-alt8880/udp CDDBP



These are internet ports.