Varnish purge behind nginX proxy

Guillaume Quintard guillaume.quintard at smartjog.com
Fri Apr 17 10:19:33 CEST 2015


On 04/16/2015 07:42 PM, Bertrand Caplet wrote:
> To make it clear for you here's my config:
>
>
> Client ---> Nginx Reverse SSL ---> Varnish ---> Nginx + PHP-FPM
>
> X-Forwarded-for is already completed by nginx (and working ofc) and I
> tried as Per Buer told me with this rule :
>
> if (std.ip(req.http.X-forwarded-for, "0.0.0.0") !~ purge)
>
> but I got the following error :
>
> Message from VCC-compiler:
> Symbol not found: 'std.ip' (expected type BOOL)
>
could you be missing a "import std;" ?

-- 
Guillaume Quintard




More information about the varnish-misc mailing list