Conditionally set header in proxy

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


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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list