Re: change proxy_pass protocol accordingly to x-forwarded-proto

2014-08-03 Thread itpp2012
Use 'map', ea: http://danconnor.com/post/4f65ea41daac4ed03104/https_ssl_proxying_nginx_to_nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252235,252238#msg-252238 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

change proxy_pass protocol accordingly to x-forwarded-proto

2014-08-03 Thread confiq
Hi, I have load balancer with SSL on it that connects to nginx servers. Nginx servers simply reverse proxy site X.com. The problem is that nginx servers don't have SSL certs and listing only to unsecured port but it forwards to https protocol. The question is, can I change proxy_pass URL accordin