Skip to content

Instantly share code, notes, and snippets.

@NickClark
Created October 5, 2010 16:21
Show Gist options
  • Save NickClark/611829 to your computer and use it in GitHub Desktop.
Save NickClark/611829 to your computer and use it in GitHub Desktop.
server {
listen 80 default;
listen 443 default ssl;
server_name www.example.com;
if ($server_port = 443) {
proxy_set_header X_FORWARDED_PROTO https;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment