ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   Apache2 + Varnish (port 80 to 8080 issue) (http://forum.ispsystem.com//showthread.php?t=2445)

a_smith 02-28-2015 03:23 PM

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

fly 03-02-2015 10:08 AM

Hi a_smith,

If you change port from 80 to 8080 manually, you also need to change port for directive NameVirtualHost

It should be
NameVirtualHost ip:8080

If you don't do this, all domains point to default server website.

a_smith 03-02-2015 12:03 PM

Quote:

Originally Posted by fly (Post 7377)
Hi a_smith,

If you change port from 80 to 8080 manually, you also need to change port for directive NameVirtualHost

It should be
NameVirtualHost ip:8080

If you don't do this, all domains point to default server website.


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....


All times are GMT +2. The time now is 03:24 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.