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

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

View File

@ -1 +1 @@
14548
9548

View File

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