Created
June 3, 2011 12:50
-
-
Save m0n5t3r/1006281 to your computer and use it in GitHub Desktop.
set x-forwarded-ssl correctly (nginx, http+https in the same config)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $ssl off; | |
if ($scheme = https) { | |
set $ssl on; | |
} | |
proxy_set_header X-Forwarded-Ssl $ssl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment