View Single Post
Old 02-28-2015, 03:23 PM   #1
Junior Member
 
Join Date: Nov 2013
Posts: 4
a_smith is on a distinguished road
Default Apache2 + Varnish (port 80 to 8080 issue)

Hello
I use ISPmamaner 5 light on Debian 7.
PHP is runing as mod_php.

I have some issue configuring Varnish.
In order to have Varnish working it needs to listen on port 80 and it will forward all the traffic to the back end via port 8080.

So Apache2 config needs be changed to make Apache listen on port 8080.

I have changed all instances in all config files in located in /etc/apache2/
This includes changing all
NameVirtualHost *:80
Listen 80
in all config files and all already existing virtual hosts config files.

After doing those changes and restarting apache my all domains resolves to default server website which says 'this site has just been created and its content will be uploaded soon blah blah blah....'

After changing 8080 to 80 in apache, ports and virtual hosts config files all domains resolves to its normal destination again.


How to properly make Apache2 listening on port 8080 and not 80 in order to get Varnish working?

Thanks
a_smith is offline   Reply With Quote