<p class="MsoNormal">Hi folks,</p>
<p class="MsoNormal"> So for last few days i have been trying to get my varnish box to server files from cache, and not having much luck. Even though its telling me it is hitting the cache its not delivering files from it, since when i shut down the appache i get 503 errors.</p>
<p class="MsoNormal"><br></p><p class="MsoNormal">232 Client requests received</p>
<p class="MsoNormal"> 130
Cache hits</p>
<p class="MsoNormal">
5 Cache hits for pass</p>
<p class="MsoNormal">
97 Cache misses</p>
<p class="MsoNormal">
99 Backend conn. success</p>
<p class="MsoNormal">
3 Backend conn. failures</p>
<p class="MsoNormal">
99 Fetch with Length</p>
<p class="MsoNormal">
15 N struct sess_mem</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Here is the copy of my vcl file with out the backend
info.. Any and all suggestion would be appreciated.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">sub vcl_recv {</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">#set req.backend = bw;</p>
<p class="MsoNormal">set req.grace = 60m;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">if (req.request == "PURGE")</p>
<p class="MsoNormal">
{if (!client.ip ~ purge)</p>
<p class="MsoNormal">
{error 405 "Not allowed.";}</p>
<p class="MsoNormal">
return(lookup);}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">if (req.request != "GET" && req.request !=
"HEAD")</p>
<p class="MsoNormal">
{return(lookup);}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> if (req.http.Cache-Control ~
"no-cache")</p>
<p class="MsoNormal">
{purge_url(req.url);}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">return(lookup);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">sub vcl_hit {</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> if (!obj.cacheable) {</p>
<p class="MsoNormal"> return(pass); }}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">sub vcl_fetch {</p>
<p class="MsoNormal"> if (beresp.status == 500 || beresp.status
== 503 || beresp.status == 504) {</p>
<p class="MsoNormal">
restart; }</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> set beresp.ttl =
600s;</p>
<p class="MsoNormal"> set beresp.grace
= 600s;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> if (beresp.ttl
< 300s) {</p>
<p class="MsoNormal"> set
beresp.ttl = 300s;}</p>
<p class="MsoNormal"> if
(!beresp.cacheable)</p>
<p class="MsoNormal">
{return(pass);}</p>
<p class="MsoNormal"> if
(beresp.http.Set-Cookie)</p>
<p class="MsoNormal">
{return(pass);}</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>