bugfix nginx config
This commit is contained in:
parent
db5d2307ba
commit
8ea03bd645
4
nlvmi
4
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
|
||||
|
|
Loading…
Reference in New Issue