Thanks Per. I'll give that a go. I was using a tutorial at https://www.varnish-cache.org/docs/2.1/tutorial/purging.html - maybe that needs to be updated if it's wrong?
I'll let you all know how I get on. On 26 February 2014 15:33, Per Buer <[email protected]> wrote: > 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 < > [email protected]> 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 > > > -- Kind regards, Andrew Langhorn Web Operations Government Digital Service e: [email protected] t: +44 (0)7810 737375 a: 6th Floor, Aviation House, 125 Kingsway, London, WC2B 6NH
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
