Issues restricting HTTP purges based on an ACL
Per Buer
perbu at varnish-software.com
Wed Feb 26 16:33:26 CET 2014
Hi,
I see quite a lot of answers but for some reason noone has noticed the
obvious error here. :-)
On Tue, Feb 25, 2014 at 5:31 PM, Andrew Langhorn <
andrew.langhorn at digital.cabinet-office.gov.uk> wrote:
> Hi all,
>
>
> The section that Varnish seems to trip up on is:
>
> if (req.request == "PURGE" ) {
> if (!client.ip ~ purge) {
> error 403 "Forbidden";
> }
> return (lookup);
> }
>
What I'm guessing you are trying to say is
if (client.ip !~ purge) {
error 403 "Forbidden";
}
"!client.ip" doesn't make sense in my book as client.ip isn't boolean.
--
<http://www.varnish-software.com/> *Per Buer*
CTO | Varnish Software
Phone: +47 958 39 117 | Skype: per.buer
We Make Websites Fly!
Winner of the Red Herring Top 100 Global Award 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20140226/5d20d7af/attachment.html>
More information about the varnish-misc
mailing list