Varnish purge behind nginX proxy

Baptiste bedis9 at gmail.com
Tue Apr 14 23:28:18 CEST 2015


On Tue, Apr 14, 2015 at 8:48 PM, 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
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Hey,

This is why the proxy-protocol is made :)
Unfortunately, nginx doesn't support it on the backend side.

Baptiste



More information about the varnish-misc mailing list