US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting
Register FAQ Community Calendar Today's Posts Search


Reply
 
Thread Tools
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
Old 03-02-2015, 10:08 AM   #2
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

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.
fly is offline   Reply With Quote
Old 03-02-2015, 12:03 PM   #3
Junior Member
 
Join Date: Nov 2013
Posts: 4
a_smith is on a distinguished road
Default

Quote:
Originally Posted by fly View Post
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....
a_smith is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:02 PM.