From 262d7e49c64e21e4ef42f270a27b53e02ca104ee Mon Sep 17 00:00:00 2001 From: Mashiro Date: Sun, 27 Jan 2019 18:25:24 +0800 Subject: [PATCH] Update nginx.conf --- 图片无法显示备用配置/nginx.conf | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/图片无法显示备用配置/nginx.conf b/图片无法显示备用配置/nginx.conf index 26cd8af..f9a98a2 100644 --- a/图片无法显示备用配置/nginx.conf +++ b/图片无法显示备用配置/nginx.conf @@ -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; @@ -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; } }