Created
May 8, 2017 15:27
-
-
Save csabatini/163f3d74e9a8e787c7273a038e66d2e8 to your computer and use it in GitHub Desktop.
nginx - redirect HTTP to HTTPS
This file contains hidden or 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; | |
server_name mydomain.com; | |
return 301 https://$server_name$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment