Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save matheusdavidson/79a52af0b055fb2e7dcb90d59d7e373c to your computer and use it in GitHub Desktop.
Save matheusdavidson/79a52af0b055fb2e7dcb90d59d7e373c to your computer and use it in GitHub Desktop.
# replace example.com for your domain
server_name example.com;
if ($http_x_forwarded_proto = "http") {
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment