02-28-2015, 03:23 PM | #1 |
Junior Member
Join Date: Nov 2013
Posts: 4
|
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 |
03-02-2015, 12:03 PM | #3 | |
Junior Member
Join Date: Nov 2013
Posts: 4
|
Quote:
Hello Please check my original post. All instances of 'port' and 'NameVirtualHost' directives in all configuration files in /etc/Apache2/ has been changed from 80 to 8080. But all websites resolves to default server page after restarting apache. Is there any other configuration file located outside /etc/Apache2/ which tells Apache on what port to listen ? I have checked all 3 times. All port number instances has been changed form 80 to 8080.... |
|
|
|