Skip to content

Instantly share code, notes, and snippets.

@krutten
Created December 8, 2010 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krutten/733799 to your computer and use it in GitHub Desktop.
Save krutten/733799 to your computer and use it in GitHub Desktop.
server {
listen 81 default;
server_name _;
rewrite ^(.*)$ https://www.domain.com$1;
}
# no need to redirect https, it's already https
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment