Varnish purge behind nginX proxy
Bertrand Caplet
bertrand.caplet at chunkz.net
Fri Apr 17 12:15:39 CEST 2015
> could you be missing a "import std;" ?
Yes I was, thanks :-)
But the if string here :
https://www.varnish-cache.org/docs/4.0/reference/vmod_std.generated.html#ip-ip-string-ip
didn't work for me.
And for information this one works really well :
if (!std.ip(regsub(req.http.X-Forwarded-For, "[, ].*$", ""), client.ip)
~ purge)
--
CHUNKZ.NET - dodgy DIYer and computer technician
Bertrand Caplet, Flers (FR)
Feel free to send encrypted/signed messages
Key ID: FF395BD9
GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9
More information about the varnish-misc
mailing list