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.


-- 
 <http://www.varnish-software.com/> *Per Buer*
Varnish Software AS
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to