Nginx 逻辑修改bug处理

pull/355/head
wulabing 2019-11-24 01:36:30 +08:00
parent a19479518d
commit 8b674587f6
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ modify_nginx(){
sed -i "/location/c \\\tlocation \/${camouflage}\/" ${nginx_conf} 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 "/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 "/return/c \\\treturn 301 https://${domain}\$request_uri;" ${nginx_conf}
sed -i "27i \\\tproxy_intercept_errors on;" ${nginx_dir}/conf/nginx.conf #sed -i "27i \\\tproxy_intercept_errors on;" ${nginx_dir}/conf/nginx.conf
} }
web_camouflage(){ web_camouflage(){
##请注意 这里和LNMP脚本的默认路径冲突千万不要在安装了LNMP的环境下使用本脚本否则后果自负 ##请注意 这里和LNMP脚本的默认路径冲突千万不要在安装了LNMP的环境下使用本脚本否则后果自负