Skip to content

Instantly share code, notes, and snippets.

@flug
Created December 9, 2016 10:38
Show Gist options
  • Select an option

  • Save flug/4e1f3f3383c478c04e9fd47e6289f87c to your computer and use it in GitHub Desktop.

Select an option

Save flug/4e1f3f3383c478c04e9fd47e6289f87c to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name my.domain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name my.domain.com;
[...]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment