listen proxy_protocol and rewrite redirect scheme

adrhc nginx-forum at
Sat Sep 17 15:24:58 UTC 2016

Hi, I'm sorry but I mistakenly claimed to work the patch:

if (c->ssl || port == 443) { 
*b->last++ ='s'; 

In order to work nginx needs this config:
	server {
		listen		proxy_protocol;
		port_in_redirect			on;

and stunnel:
[tls to http]
sni = tls:*
connect =
protocol = proxy

Posted at Nginx Forum:,269623,269644#msg-269644

More information about the nginx mailing list