Skip to content

Instantly share code, notes, and snippets.

@salgo
Created October 16, 2017 16:44
Show Gist options
  • Save salgo/8371fa4216c76183d7c9c8a5883a3938 to your computer and use it in GitHub Desktop.
Save salgo/8371fa4216c76183d7c9c8a5883a3938 to your computer and use it in GitHub Desktop.
if (${DOLLAR}http_x_forwarded_proto != "https") {
rewrite ^(.*)${DOLLAR} https://${DOLLAR}server_name${DOLLAR}1 permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment