From 9f27920dbe09c24ff39771e532d4a11cc17b759c Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 18 Mar 2018 19:24:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20Path=20=E5=88=86=E6=B5=81?= =?UTF-8?q?=E6=97=B6=E8=AE=BF=E9=97=AE=20Path=20=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E7=9A=84=20Bad=20Request=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 855695a..fb972c3 100644 --- a/install.sh +++ b/install.sh @@ -140,6 +140,7 @@ modify_nginx(){ sed -i "/location/c \\\tlocation \/${camouflage}\/" ${nginx_conf} sed -i "/proxy_pass/c \\\tproxy_pass http://127.0.0.1:${PORT};" ${nginx_conf} sed -i "/return/c \\\treturn 301 https://${domain}\$request_uri;" ${nginx_conf} + sed -i "/keepalive_timeout/i \\tproxy_intercept_errors on;" /etc/nginx/nginx.conf } web_camouflage(){ ##请注意 这里和LNMP脚本的默认路径冲突,千万不要在安装了LNMP的环境下使用本脚本,否则后果自负 @@ -286,7 +287,8 @@ nginx_conf_add(){ ssl_ciphers HIGH:!aNULL:!MD5; server_name serveraddr.com; index index.html index.htm; - root /home/wwwroot/sCalc; + root /home/wwwroot/sCalc; + error_page 400 = /400.html; location /ray/ { proxy_redirect off;