Skip to content

Commit

Permalink
Update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mashirozx committed Jan 27, 2019
1 parent 7c6329b commit 262d7e4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions 图片无法显示备用配置/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ http {
server_name imgaz.pixiv.net;
server_name comic.pixiv.net;
server_name novel.pixiv.net;
server_name source.pixiv.net;
server_name i1.pixiv.net;
server_name i2.pixiv.net;
server_name i3.pixiv.net;
server_name i4.pixiv.net;

ssl on;
ssl_certificate ca/pixiv.net.crt;
Expand Down Expand Up @@ -237,13 +242,7 @@ http {
ssl_certificate_key ca/pixiv.net.key;

location / {
root html;
index index.html index.htm;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
rewrite ^/(.*)$ https://pages.shino.cc/$1 redirect;
}
}

Expand Down

0 comments on commit 262d7e4

Please sign in to comment.