mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-22 13:48:11 +08:00
Port 80 auto rewrite
This commit is contained in:
parent
bdd4e7f0c1
commit
81d1b24b9f
@ -67,7 +67,11 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
#listen 80;
|
listen 80 default_server;
|
||||||
|
rewrite ^(.*) https://$host$1 permanent;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name pixiv.net;
|
server_name pixiv.net;
|
||||||
server_name www.pixiv.net;
|
server_name www.pixiv.net;
|
||||||
|
@ -1 +1 @@
|
|||||||
14548
|
9548
|
||||||
|
@ -67,7 +67,11 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
#listen 80;
|
listen 80 default_server;
|
||||||
|
rewrite ^(.*) https://$host$1 permanent;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name pixiv.net;
|
server_name pixiv.net;
|
||||||
server_name www.pixiv.net;
|
server_name www.pixiv.net;
|
||||||
|
Loading…
Reference in New Issue
Block a user