Enable proxy_protocol on https

Maxim Dounin mdounin at mdounin.ru
Fri Jun 21 14:05:03 UTC 2019


On Fri, Jun 21, 2019 at 03:46:53PM +0200, basti wrote:

> I have nginx 1.14.2 on debian buster and need to enable proxy_protocol.
> (https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/#listen)
> When I enable it on http all is fine. When i try to enable it on https
> no connection can be established. No syntax error and no log entry.
> listen          80 proxy_protocol;  <-- work
> listen          443 proxy_protocol; <-- does not work

The PROXY protocol impies that there should be a PROXY protocol 
header before the actual SSL handshake.  As such, it might not be 
trivial to establish an SSL connection to such a socket unless 
you are doing so via a proxy which adds PROXY protocol headers.

Maxim Dounin

More information about the nginx mailing list