Search code examples
nginxvarnishproxy-protocol

varnish nginx proxy protocol


I have this install from this guide https://www.linode.com/docs/websites/varnish/use-varnish-and-nginx-to-serve-wordpress-over-ssl-and-http-on-debian-8

is there any advantage for using proxoy protocol? from https://info.varnish-software.com/blog/five-steps-to-secure-varnish-with-hitch-and-lets-encrypt

to this setup (I have varnish 5)

if so, what is the modification needed for the setup in the linode link above?

best.


Solution

  • To begin with, it will not be possible to use PROXY protocol in the linked setup.

    Nginx supports PROXY protocol only on the client side (i.e. when there is another proxy forwarding requests to it). It doesn't support PROXY protocol with proxy_pass, where it would make more sense for Varnish + Nginx SSL setup. Sorry about that.