So on this one the site comes up<div><br></div><div><div> 13 SessionOpen c 4.58.0.2 23450 *:80</div><div> 13 ReqStart c 4.58.0.2 23450 831017267</div><div> 13 RxRequest c GET</div><div> 13 RxURL c /</div>
<div> 13 RxProtocol c HTTP/1.1</div><div> 13 RxHeader c Host: <a href="http://varnish2.broadway.com">varnish2.broadway.com</a></div><div> 13 RxHeader c User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5</div>
<div> 13 RxHeader c Referer: <a href="http://varnish2.broadway.com/">http://varnish2.broadway.com/</a></div><div> 13 RxHeader c Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</div>
<div> 13 RxHeader c Accept-Encoding: gzip,deflate,sdch</div><div> 13 RxHeader c Accept-Language: en-US,en;q=0.8</div><div> 13 RxHeader c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3</div><div> 13 RxHeader c Cookie: OAX=BDoAAktdupEAAym8; __qca=P0-1578676227-1264519209511; __utmz=105990736.1264519210.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=105990736.1647079563.1264519210.1269538667.1270578927.6; __ngt_cli=9AD2EBDB8489C157C3867ADB; __utmz=7868</div>
<div> 13 RxHeader c Cache-Control: max-stale=0</div><div> 13 RxHeader c Connection: Keep-Alive</div><div> 13 RxHeader c X-BlueCoat-Via: C92BD551DF341D76</div><div> 13 VCL_call c recv lookup</div><div>
13 VCL_call c hash hash</div><div> 13 Hit c 831017141</div><div> 13 VCL_call c hit deliver</div><div> 13 Length c 9057</div><div> 13 VCL_call c deliver deliver</div><div> 13 TxProtocol c HTTP/1.1</div>
<div> 13 TxStatus c 200</div><div> 13 TxResponse c OK</div><div> 13 TxHeader c Server: Apache/2.2.9 (Fedora)</div><div> 13 TxHeader c Vary: User-Agent,Cookie,Accept-Encoding</div><div> 13 TxHeader c Content-Encoding: gzip</div>
<div> 13 TxHeader c Content-Type: text/html; charset=utf-8</div><div> 13 TxHeader c Content-Length: 9057</div><div> 13 TxHeader c Date: Wed, 02 Jun 2010 19:11:45 GMT</div><div> 13 TxHeader c X-Varnish: 831017267 831017141</div>
<div> 13 TxHeader c Age: 72</div><div> 13 TxHeader c Via: 1.1 varnish</div><div> 13 TxHeader c Connection: keep-alive</div><div> 13 ReqEnd c 831017267 1275505905.109919071 1275505905.110054970 0.000252008 0.000067949 0.000067949</div>
<div><br></div><div>and this one is a 503</div><div><br></div><div><div>13 SessionOpen c 4.58.0.2 23716 *:80</div><div> 13 ReqStart c 4.58.0.2 23716 831017268</div><div> 13 RxRequest c GET</div><div> 13 RxURL c /</div>
<div> 13 RxProtocol c HTTP/1.1</div><div> 13 RxHeader c Accept: */*</div><div> 13 RxHeader c Accept-Language: en-us</div><div> 13 RxHeader c UA-CPU: x86</div><div> 13 RxHeader c Accept-Encoding: gzip, deflate</div>
<div> 13 RxHeader c User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; WOW64; SV1; .NET CLR 2.0.50727)</div><div> 13 RxHeader c Host: <a href="http://varnish2.broadway.com">varnish2.broadway.com</a></div>
<div> 13 RxHeader c Cookie: s_cc=true; s_sq=%5B%5BB%5D%5D</div><div> 13 RxHeader c Cache-Control: max-stale=0</div><div> 13 RxHeader c Connection: Keep-Alive</div><div> 13 RxHeader c X-BlueCoat-Via: C92BD551DF341D76</div>
<div> 13 VCL_call c recv lookup</div><div> 13 VCL_call c hash hash</div><div> 13 VCL_call c miss fetch</div><div> 13 FetchError c no backend connection</div><div> 13 VCL_call c error deliver</div>
<div> 13 Length c 487</div><div> 13 VCL_call c deliver deliver</div><div> 13 TxProtocol c HTTP/1.1</div><div> 13 TxStatus c 503</div><div> 13 TxResponse c Service Unavailable</div><div> 13 TxHeader c Server: Varnish</div>
<div> 13 TxHeader c Retry-After: 0</div><div> 13 TxHeader c Content-Type: text/html; charset=utf-8</div><div> 13 TxHeader c Content-Length: 487</div><div> 13 TxHeader c Date: Wed, 02 Jun 2010 19:12:16 GMT</div>
<div> 13 TxHeader c X-Varnish: 831017268</div><div> 13 TxHeader c Age: 0</div><div> 13 TxHeader c Via: 1.1 varnish</div><div> 13 TxHeader c Connection: close</div><div> 13 ReqEnd c 831017268 1275505936.200603962 1275505936.203883886 0.000077009 0.003217936 0.000061989</div>
</div><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 2:40 PM, Rob S <span dir="ltr"><<a href="mailto:rtshilston@gmail.com">rtshilston@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If you send the output of varnishlog from one working and one non-working browser, with the back end shutdown, then we might be able to spot the difference.<br>
<br>
Rob<br>
<br>
vitaly burshteyn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi folks,<br>
<br>
Just curious if you can point me in the right direction.<br>
<br>
I have 2.0.6 varnish running. So it seems as if the cache is working and i am getting cache hits.<br>
<br>
When i shut down the back end i can still get to the cached pages.<br>
<br>
On the other hand when i try a new browser i keep getting 503 pages.<br>
<br>
Any ideas?<br>
<br>
<br>
<br>
backend default {<br>
.host = "10.249.129.171";<br>
.port = "80"; }<br>
<br>
sub vcl_recv {<br>
unset req.http.cookie;<br>
<br>
if (req.url ~ "^/admin/"){<br>
set req.url = regsub(req.url, "^/admin/", "/oops/"); }<br>
<br>
if (req.url ~ "/affiliates/visa-signature/") {<br>
return(pass); }<br>
<br>
if (req.http.cookie) {<br>
set req.http.Cookie = regsuball(req.http.Cookie, "__utm.=[^;]+(; )?", "");<br>
if (req.http.cookie ~ "^ *$") {<br>
remove req.http.cookie; } }<br>
<br>
if (req.url ~ "^/r/\d+/") {<br>
return(pass); }<br>
<br>
# Don't cache if specific HTTP headers exist<br>
if (req.http.Expect) {<br>
return(pass); }<br>
<br>
if (req.http.Authorization) {<br>
return(pass); }<br>
return(lookup);}<br>
<br>
sub vcl_deliver {<br>
return (deliver);}<br>
<br>
sub vcl_fetch {<br>
set obj.ttl = 120m;<br>
<br>
unset obj.http.set-cookie;<br>
if (req.url ~ "^/$") {<br>
set obj.ttl = 1800s;}<br>
<br>
# Don't cache error pages<br>
if (obj.status == 503) {<br>
return(pass); }<br>
<br>
if (obj.http.Vary == "Cookie") {<br>
remove obj.http.Vary;<br>
}<br>
if (obj.http.Vary == "Cookie,Accept-Encoding") {<br>
set obj.http.Vary = "Accept-Encoding"; }<br>
<br>
# Anti-dogpiling feature - serve a stale request until a new one<br>
# can be fetched, for up to 30s<br>
<br>
if (!obj.cacheable) {<br>
return(pass); }<br>
<br>
return(deliver);}<br>
<br>
sub vcl_hit {<br>
remove obj.http.Set-Cookie;}<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<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="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
</blockquote>
<br>
</blockquote></div><br></div>