Update sites.inc
This commit is contained in:
@@ -495,12 +495,11 @@ NEWPROXYSITE_CREATE(){
|
||||
else
|
||||
# [ "${MAIN_SITE}" != "${SITENAME}" ] && mv ${NM_NGINXPATH}/sites-enabled/${SITENAME}.conf ${nginxconfig}
|
||||
|
||||
sed -i "/set \$forward_scheme/d" ${nginxconfig}
|
||||
sed -i "/server {/a\\\tset \$forward_scheme ${PROXYSCHEME};" ${nginxconfig}
|
||||
# sed -i "/set \$server/d" ${nginxconfig}; sed -ie "/set \$forward_scheme/a\tset \$server \"${PROXYHOST}\";" ${nginxconfig}
|
||||
# sed -i "/set \$port/d" ${nginxconfig}; sed -ie "/set \$server/a\tset \$port ${PROXYPORT};" ${nginxconfig}
|
||||
# sed -i "/server_name/d" ${nginxconfig}; sed -ie "/set \$port/a
|
||||
# \tserver_name ${SERVERNAMES//,/ };" ${nginxconfig}
|
||||
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
|
||||
\\\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}
|
||||
@@ -525,7 +524,7 @@ NEWPROXYSITE_CREATE(){
|
||||
|
||||
|
||||
|
||||
# sed -i "s/##include/#include/g" ${nginxconfig}
|
||||
sed -i "s/##include/#include/g" ${nginxconfig}
|
||||
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user