Skip to content

Instantly share code, notes, and snippets.

@yungke
Last active August 29, 2015 14:19
Show Gist options
  • Save yungke/c2e67b7aae0ab2f91c67 to your computer and use it in GitHub Desktop.
Save yungke/c2e67b7aae0ab2f91c67 to your computer and use it in GitHub Desktop.
Nginx 下 301 http 轉向 https 設定
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