Ban URL - req.backend unsupported?

Per Buer perbu at varnish-software.com
Mon Jun 24 13:58:25 CEST 2013


Hi,

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.


-- 
 <http://www.varnish-software.com/> *Per Buer*
Varnish Software AS
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130624/d8ebc478/attachment.html>


More information about the varnish-misc mailing list