Skip to content

Instantly share code, notes, and snippets.

@noxqsgit
Created December 15, 2014 20:31
Show Gist options
  • Save noxqsgit/0bb70cf5ff421826166d to your computer and use it in GitHub Desktop.
Save noxqsgit/0bb70cf5ff421826166d to your computer and use it in GitHub Desktop.
nginx redirect to ssl
server {
listen 80 default_server;
server_name _;
rewrite ^ https://$host$request_uri? permanent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment