Created
December 15, 2014 20:31
-
-
Save noxqsgit/0bb70cf5ff421826166d to your computer and use it in GitHub Desktop.
nginx redirect to ssl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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