Enable proxy_protocol on https

basti mailinglist at unix-solution.de
Fri Jun 21 14:23:01 UTC 2019


Hello Maxim,

thanks a lot, the proxy send the header only on http, my mistake sorry.

On 21.06.19 16:05, Maxim Dounin wrote:
> Hello!
> 
> 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.
> 


More information about the nginx mailing list