Last active
March 8, 2016 08:08
-
-
Save cupnoodle/3afcc9e7da4893e68c16 to your computer and use it in GitHub Desktop.
Redirect http traffic to https in Nginx
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 [your_domain] www.[your_domain]; | |
| return 301 https://$host$request_uri; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment