Ban URL - req.backend unsupported?

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jun 24 08:39:43 CEST 2013


In message <20130624073021.3fd8c3bb at wrk042.wrk.lsn.camptocamp.com>, Cedric Jean
neret writes:

> I'm trying to ban some content matching the configured req.backend,
> but it seems it's not working as expected:

It is not supported, and probably doesn't work as well as you
expect it to.

Set the backend name into a HTTP header on the object,
and ban on that instead.

If you don't want the clients to see that header, remove it in
vcl_deliver{}


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list