Update sites.inc
This commit is contained in:
@@ -498,7 +498,7 @@ NEWPROXYSITE_CREATE(){
|
||||
sed -i "/set \$forward_scheme/d" ${nginxconfig}; sed -i "/server {/a\\\tset \$forward_scheme ${PROXYSCHEME};" ${nginxconfig}
|
||||
sed -i "/set \$server/d" ${nginxconfig}; sed -i "/set \$forward_scheme/a\\\tset \$server \"${PROXYHOST}\";" ${nginxconfig}
|
||||
sed -i "/set \$port/d" ${nginxconfig}; sed -i "/set \$server/a\\\tset \$port ${PROXYPORT};" ${nginxconfig}
|
||||
sed -i "/server_name/d" ${nginxconfig}; sed -i "/set \$port/a\\\n\\\tserver_name ${SERVERNAMES//,/ };" ${nginxconfig}
|
||||
sed -i "/server_name/,+1 d" ${nginxconfig}; sed -i "/set \$port/a\\\n\tserver_name ${SERVERNAMES//,/ };" ${nginxconfig}
|
||||
|
||||
if [ "${SECURE}" != "-" ]; then
|
||||
sed -i "s/#include conf.d\/include\/secure-access.conf/include conf.d\/include\/secure-access.conf/g" ${nginxconfig}
|
||||
|
||||
Reference in New Issue
Block a user