From 8ea03bd6459efcc0803825b6b5ed6050628f7a6a Mon Sep 17 00:00:00 2001 From: nativemad Date: Wed, 24 Oct 2018 18:07:29 +0200 Subject: [PATCH] bugfix nginx config --- nlvmi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nlvmi b/nlvmi index b8c61ec..ef095ff 100755 --- a/nlvmi +++ b/nlvmi @@ -199,10 +199,10 @@ function vmstart { fi fi if [ -n $WPORT ] && [ -n $NGINXCONFIGPATH ]; then - echo "localtion /${array[1]}/ {" >$NGINXCONFIGPATH/${array[1]}.conf + echo "location /${array[1]}/ {" >$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_pass http://${array[3]}:$WPORT/;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_http_version 1.1;" >>$NGINXCONFIGPATH/${array[1]}.conf - echo " proxy_set_header Upgrade $http_upgrade;" >>$NGINXCONFIGPATH/${array[1]}.conf + echo " proxy_set_header Upgrade \$http_upgrade;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_set_header Connection \"Upgrade\";" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_read_timeout 61s;" >>$NGINXCONFIGPATH/${array[1]}.conf echo " proxy_buffering off;" >>$NGINXCONFIGPATH/${array[1]}.conf