Ban URL - req.backend unsupported?
varnish at tengu.ch
Mon Jun 24 14:06:16 CEST 2013
On Mon, 24 Jun 2013 13:58:25 +0200
Per Buer <perbu at varnish-software.com> wrote:
> On Mon, Jun 24, 2013 at 7:30 AM, Cedric Jeanneret <varnish at tengu.ch> wrote:
> > Hello!
> > I'm trying to ban some content matching the configured req.backend, but it
> > seems it's not working as expected:
> > varnish> ban req.backend == "foo_bar" && req.url ~ "^/baz/foo"
> > 106
> > unknown or unsupported field "req.backend"
> As Dag pointed out, this is unsupported.
> However, you could solve it by assigning a HTTP response header that
> indicates the backend. So, in fetch you do a resp.http.backend = "foo_bar"
> and then ban on it later.
Hmm, yep, good point. I'll discuss with my colleague and see if this may be applied.
Thanks for the hint!
More information about the varnish-misc