Port 80 auto rewrite

This commit is contained in:
Mashiro 2018-09-18 02:15:42 +08:00
parent bdd4e7f0c1
commit 81d1b24b9f
3 changed files with 11 additions and 3 deletions

View File

@ -67,7 +67,11 @@ http {
}
server {
#listen 80;
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443 ssl;
server_name pixiv.net;
server_name www.pixiv.net;

View File

@ -1 +1 @@
14548
9548

View File

@ -67,7 +67,11 @@ http {
}
server {
#listen 80;
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443 ssl;
server_name pixiv.net;
server_name www.pixiv.net;