<div class="gmail_quote">On Wed, Dec 7, 2011 at 2:52 PM, Ivan Martinez <span dir="ltr"><<a href="mailto:ivan.martinez@masterion.com">ivan.martinez@masterion.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
In a CentOS 6 server, I'm running Varnish in port 80 serving pages from a Zotonic site in port 8000. It works fine when I leave all the ports open. However, if I close all ports from 0 to 631 and explicitly open 80 and 8000, the following happens:<br>
<br>
- I can see the website in server:8000.<br>
- In server:80, I get the following after some seconds:<br>
<br>
Error 503 Service Unavailable<br>
<br>
Service Unavailable<br>
Guru Meditation:<br>
<br>
XID: 544990083<br>
<br>
Varnish cache server<br></blockquote><div><br></div><div>Error 503 happens when Varnish could not contact any backends. You can check if a backend is up and healthy using the command:</div><div><br></div><div>varnishadm -T localhost:<adm_port> debug.health</div>
<div><br></div><div>The backend must be healthy. If it's sick, it means that varnish can't connect on port server:8000 on your site for some reason (nc/telnet/wget/curl can be useful to test here). Check if the firewall is blocking the output, and it's accepting established/related connections on the backend.</div>
</div><div><br></div>-- <br>[]'s<br>Hugo<br><a href="http://www.devin.com.br">www.devin.com.br</a><br>