I have all the sections in separated files:<br><br>At backend.vcl<br><br><span style="font-family:courier new,monospace">backend app02 {</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> .host = "<a href="http://app02.domain.com">app02.domain.com</a>";</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> .port = "80";</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> .connect_timeout = 1.5s;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> .first_byte_timeout = 45s;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> .between_bytes_timeout = 30s;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> .probe = { </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> .url = "/health-check.html";</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> .interval = 1s;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> .timeout = 30s;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> .window = 10;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> .threshold = 8;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> }</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">}</span><br><br>At vcl_recv.vcl:<br><br><span style="font-family:courier new,monospace"> #request to beta</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> if (req.http.Host == "<a href="http://www.domain.com">www.domain.com</a>") {</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> set req.backend = app02;</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> }</span><br><br>
<br><br><div class="gmail_quote">2012/7/18 Shibashish <span dir="ltr"><<a href="mailto:shib4u@gmail.com" target="_blank">shib4u@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><div class="h5">On Wed, Jul 18, 2012 at 4:55 PM, Abraham Cruz Sustaita <span dir="ltr"><<a href="mailto:abraham.sustaita@buscacorp.com" target="_blank">abraham.sustaita@buscacorp.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I have 8 servers, 7 of them are working as they supposed to be working. However, I have app02, and it is not working. The first problem I noticed was it was reporting errors even when I change the error reporting to off. The second problem, and the one that is give me troubles, is that after I reboot the server, it is not working. I have this in the log:<br>
<br><span style="font-family:courier new,monospace">varnishlog | grep app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 0 Backend_health - app02 Still healthy 4--X-R- 3 3 5 0.000488 0.000000 HTTP/1.1 301 Moved Permanently</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 5 BackendOpen b app02 192.168.11.42 48452 192.168.11.32 80</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 5 BackendReuse b app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 4 Backend c 5 old app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 4 ObjHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 4 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 37 BackendOpen b app02 192.168.11.42 48460 192.168.11.32 80</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 37 BackendReuse b app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 5 BackendReuse b app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 20 Backend c 5 old app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 20 ObjHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 20 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 28 Backend c 37 old app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 28 ObjHeader c b_n: app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 28 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 0 Backend_health - app02 Went sick 4--X-R- 2 3 5 0.000722 0.000000 HTTP/1.1 301 Moved Permanently</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 5 BackendReuse b app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 68 Backend c 5 old app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 68 ObjHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 68 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 37 BackendReuse b app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 75 Backend c 37 old app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 75 ObjHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 75 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 123 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 259 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 187 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 0 Backend_health - app02 Still sick 4--X-R- 1 3 5 0.000520 0.000000 HTTP/1.1 301 Moved Permanently</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> 67 TxHeader c b_n: app02</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> 0 Backend_health - app02 Still sick 4--X-R- 0 3 5 0.000503 0.000000 HTTP/1.1 301 Moved Permanently</span><br><br>But the problem is that the server is working ok. If I do wget app02 from varnish, it returns what it is supposed to return! But varnish says that it went sick... Is there anyway I can trace this? <br>
<br>I have modified my hosts file in order to point <a href="http://www.domain.com" target="_blank">www.domain.com</a> to app02 so I can do wget <a href="http://www.domain.com" target="_blank">www.domain.com</a> (<a href="http://www.domain.com" target="_blank">www.domain.com</a> is the domain I have in that server), and it response as it supposed:<br>
<br><span style="font-family:courier new,monospace">wget --server-response --spider <a href="http://www.domain.com" target="_blank">www.domain.com</a><br></span><span style="font-family:courier new,monospace">Spider mode enabled. Check if remote file exists.</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">--2012-07-18 23:53:20-- <a href="http://www.domain.com/" target="_blank">http://www.domain.com/</a></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Resolving www.domain.com... 192.168.11.32</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Connecting to <a href="http://www.domain.com" target="_blank">www.domain.com</a>|192.168.11.32|:80... connected.</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">HTTP request sent, awaiting response... </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> HTTP/1.1 200 OK</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Date: Wed, 18 Jul 2012 23:53:20 GMT</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Server: Apache/2.2.22 (Fedora)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> X-Powered-By: PHP/5.4.4</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Set-Cookie: sessionToken=a73cdcde6439423231f19f7ce6870ae7; expires=Thu, 18-Jul-2013 23:53:21 GMT; path=/; domain=.<a href="http://domain.com" target="_blank">domain.com</a></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Set-Cookie: sessionToken=46560b800baa0ee9cf0f7eeea8dc1add; expires=Thu, 18-Jul-2013 23:53:21 GMT; path=/; domain=.<a href="http://domain.com" target="_blank">domain.com</a></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Set-Cookie: sessionToken=8bfa42f1782db58726ebdc500ede7705; expires=Thu, 18-Jul-2013 23:53:21 GMT; path=/; domain=.<a href="http://domain.com" target="_blank">domain.com</a></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Vary: Accept-Encoding</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Cache-Control: no-store, no-cache, must-revalidate, max-age=0</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Pragma: no-cache</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Keep-Alive: timeout=15, max=100</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Connection: Keep-Alive</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Content-Type: text/html; charset=iso-8859-1</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Length: unspecified [text/html]</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Remote file exists and could contain further links,</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">but recursion is disabled -- not retrieving.</span><br style="font-family:courier new,monospace"><br><br>
<br></div></div>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br><div><br></div><div>Show us the relevant vcl config.</div>
<div><br></div><div>Also, u can see Varnish is getting 301 but wget getting 200, so check the config and backend again.</div><div><br></div><div>--<br clear="all">ShiB.<br>while ( ! ( succeed = try() ) );<br></div>
</blockquote></div><br>