listen proxy_protocol and rewrite redirect scheme
adrhc
nginx-forum at forum.nginx.org
Sat Sep 17 15:24:58 UTC 2016
Hi, I'm sorry but I mistakenly claimed to work the patch:
#if (NGX_HTTP_SSL)
if (c->ssl || port == 443) {
*b->last++ ='s';
}
#endif
In order to work nginx needs this config:
server {
listen 127.0.0.1:443 proxy_protocol;
port_in_redirect on;
and stunnel:
[tls to http]
sni = tls:*
connect = 127.0.0.1:443
protocol = proxy
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269623,269644#msg-269644
More information about the nginx
mailing list