Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've just setup varnish server, for now I made him run on the 8080 port and my Apache2 is on the 80.

If I try : http://www.seek-team.com:8080 => no response.

I tryed to switch ports, (varnish on 80 and apache2 on 8080) and I end up with a 503 with a Guru meditation

Error 503 Service Unavailable  
Service Unavailable 
Guru Meditation:  XID: 1350923555  
Varnish cache server

Here's my .vcl

PS: I've edited /etc/default/varnish to tell to listen to 8080

netstat -lp | grep varnish
tcp        0      0 tristan-web.fr:6082     *:*                     LISTEN      17046/varnishd  
tcp        0      0 *:http-alt              *:*                     LISTEN      17047/varnishd  
tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      17047/varnishd

netstat -lp | grep apache
tcp6       0      0 [::]:www                [::]:*                  LISTEN      15812/apache2   
tcp6       0      0 [::]:https              [::]:*                  LISTEN      15812/apache2   
unix  2      [ ACC ]     STREAM     LISTENING     6572942  15812/apache2       /var/run/wsgi.15812.0.1.sock

Thanks for any help.

share|improve this question
1  
Define "no response". Logs, tcpdumps, firewall rules, and apache configuration would also be handy information to have. –  womble Aug 5 '12 at 2:06
1  
Did you change your backend definition appropriately when you changed what was listening where? You've got varnish connecting to the port that varnish listens on. What output do you get from varnishlog? –  Shane Madden Aug 5 '12 at 3:42
add comment

1 Answer 1

The port 8080 wasn't accessible from the web and locally, so that explains why varnish didn't hit apache.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.