varnish nginx proxy protocol

452 views Asked by At

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.

1

There are 1 answers

2
Danila Vershinin On BEST ANSWER

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.