Change Listen Port on httpd config for Varnish Configuration

cyildirim picture cyildirim · May 10, 2013 · Viewed 27.8k times · Source

I installed Varnish Cache my CentOS server.I try the do configuration correctly but as I read many document say to me change apache port Listen 80 to Listen 8080. But I couldn't find any Listen 80 line on my server /etc/httpd/conf/httpd.conf but i found 0.0.0.0:80 line. Is it same thing ? If those are same thinhgs, when i change my sites not working.

I know that I make huge logical mistake but i can't understand.

Thanks

Answer

Leroy Meijer picture Leroy Meijer · May 10, 2013

In this file /etc/httpd/conf/httpd.conf there should be a line: ServerRoot "/etc/httpd" Below this line there is Listen 80 Change this to Listen 8080 and restart apache

Restarting with command: /etc/init.d/httpd restart

I also found this:-> http://updatedlinux.wordpress.com/2011/04/29/how-to-change-the-default-port-number-for-apache-http-server/

Possible that this will help!