From e17bbf95b1a113daeb4110255e55d25946da4bbb Mon Sep 17 00:00:00 2001 From: wulabing Date: Fri, 6 Apr 2018 10:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Ubuntu=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=AE=89=E8=A3=85=E5=90=8E=20Nginx=20=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f1813fe..59b5c77 100644 --- a/install.sh +++ b/install.sh @@ -159,7 +159,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 + sed -i "27i \\\tproxy_intercept_errors on;" /etc/nginx/nginx.conf } web_camouflage(){ ##请注意 这里和LNMP脚本的默认路径冲突,千万不要在安装了LNMP的环境下使用本脚本,否则后果自负