Update sites.inc
This commit is contained in:
@@ -634,7 +634,7 @@ SITEINFO(){
|
|||||||
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
|
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
|
||||||
declare -A SITELIST
|
declare -A SITELIST
|
||||||
if [ "${gosite}" != "" ]; then
|
if [ "${gosite}" != "" ]; then
|
||||||
sites=$(find ${gosite}/h*.conf); i=0
|
sites=$(find ${gosite}/*.conf); i=0
|
||||||
if [ "${1}" == "" ] || ([ "${1}" == "edit" ] && [ "${2}" == "" ]); then
|
if [ "${1}" == "" ] || ([ "${1}" == "edit" ] && [ "${2}" == "" ]); then
|
||||||
for sitefile in ${sites[@]}; do
|
for sitefile in ${sites[@]}; do
|
||||||
site=${sitefile##*/}; site=${site/.conf/}
|
site=${sitefile##*/}; site=${site/.conf/}
|
||||||
@@ -663,7 +663,7 @@ SITEINFO(){
|
|||||||
port=${port##* }; port=${port%;*}
|
port=${port##* }; port=${port%;*}
|
||||||
proxyhost="${scheme}://${server}:${port}"
|
proxyhost="${scheme}://${server}:${port}"
|
||||||
else
|
else
|
||||||
proxyhost="custom Proxy_pass"
|
proxyhost="[ custom proxy_pass ]"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
type='HTTP'
|
type='HTTP'
|
||||||
|
|||||||
Reference in New Issue
Block a user