Created
August 25, 2017 13:40
-
-
Save pradeepdotco/c7aeafdce4bbb8bdaacd9a5edecefabc to your computer and use it in GitHub Desktop.
Nginx config for 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 domain.com www.domain.com; | |
return 301 https://domain.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment