[Varnish] #1633: Change backend director doesn't work

Varnish varnish-bugs at varnish-cache.org
Wed Nov 26 13:23:30 CET 2014


#1633: Change backend director doesn't work
------------------------------+----------------------
 Reporter:  steven.raccourci  |       Owner:
     Type:  defect            |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  build             |     Version:  4.0.2
 Severity:  normal            |  Resolution:  invalid
 Keywords:  director          |
------------------------------+----------------------
Changes (by fgsch):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 The problem is in your VCL. Specifically:

 {{{
     # Don't cache. This makes sure requests are to this URL always passed.
     if (req.http.Cache-Control ~ "no-cache" ||
          req.url ~ "^/phpmyadmin" ||
          req.url ~ "^/user" ||
          req.url ~ "^/apc") {
         return (pass);
     }
 }}}

 And in your request:

 {{{
 -   ReqHeader      Cache-Control: no-cache
 }}}

 So the request is pass'd earlier before it reaches the other if statement
 where you set req.backend_hint.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1633#comment:5>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list