Varnish purge behind nginX proxy

Andrew Langhorn andrew.langhorn at digital.cabinet-office.gov.uk
Tue Apr 14 21:10:56 CEST 2015


Can you post your VCL? There's a vmod to pass True-Client-Ip through.

On Tuesday, 14 April 2015, Bertrand Caplet <bertrand.caplet at chunkz.net>
wrote:

> Hey guys,
> I set varnish behind a nginX proxy few days ago.
> I want to be able to purge varnish only from the machine where it's
> hosted but because there is a nginx reverse proxy in front of it,
> varnish thinks it's coming from 127.0.0.1 so basically whatever the
> client is, anyone can purge the cache.
> By the way I set some rules for varnish to know x-forwarded-for =
> client.ip.
>
> Do you know how can I change that?
>
> Thanks in advance,
> --
> CHUNKZ.NET - script kiddie and computer technician
> Bertrand Caplet, Flers (FR)
> Feel free to send encrypted/signed messages
> Key ID: 37F70C30
> GPG FP: 134A 4027 518B 5F4D D409 558D BA9B 7BF0 37F7 0C30
>
>
>

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150414/c98932db/attachment.html>


More information about the varnish-misc mailing list