Last active
August 29, 2015 14:19
-
-
Save yungke/c2e67b7aae0ab2f91c67 to your computer and use it in GitHub Desktop.
Nginx 下 301 http 轉向 https 設定
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; | |
server_name you.domain.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name you.domain.com; | |
[….] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment