On Mon, 24 Jun 2013 13:58:25 +0200
Per Buer <[email protected]> wrote:

> Hi,
> 
> On Mon, Jun 24, 2013 at 7:30 AM, Cedric Jeanneret <[email protected]> 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.
> 
> 

Hello Per,

Hmm, yep, good point. I'll discuss with my colleague and see if this may be 
applied.

Thanks for the hint!

Cheers,

C.

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to