Skip to content

Instantly share code, notes, and snippets.

@m0n5t3r
Created June 3, 2011 12:50
Show Gist options
  • Save m0n5t3r/1006281 to your computer and use it in GitHub Desktop.
Save m0n5t3r/1006281 to your computer and use it in GitHub Desktop.
set x-forwarded-ssl correctly (nginx, http+https in the same config)
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