From 3dcdeab11c41e799496a111a751c0dea310e2f84 Mon Sep 17 00:00:00 2001 From: Huangqian Date: Sun, 5 May 2019 20:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmodify=5Fnginx()=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=B8=AA=E5=B0=8Fbug=E3=80=82?= 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 078ea13..eab836a 100644 --- a/install.sh +++ b/install.sh @@ -161,7 +161,7 @@ modify_nginx(){ if [[ -f /etc/nginx/nginx.conf.bak ]];then cp /etc/nginx/nginx.conf.bak /etc/nginx/nginx.conf fi - sed -i "1,/listen/{s/listen 443 ssl;/listen ${port} ssl;/}" ${v2ray_conf} + sed -i "1,/listen/{s/listen 443 ssl;/listen ${port} ssl;/}" ${nginx_conf} sed -i "/server_name/c \\\tserver_name ${domain};" ${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}