Conditionally set header in proxy

Mitchell Hashimoto mitchell.hashimoto at gmail.com
Wed May 18 00:14:30 MSD 2011


Hello,

I'm doing SSL termination in nginx, and I'd like to set a header such as
"X-Sheme https" ONLY if X-Scheme is not set. The reason is because an
upstream load balancer may have terminated SSL as well, and I don't want to
overwrite that value.

Is this possible?

Best,
Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20110517/59b97314/attachment.html>


More information about the nginx mailing list