Update sites.inc
This commit is contained in:
@@ -652,15 +652,19 @@ SITEINFO(){
|
||||
else
|
||||
DIVIDER false darkGray ${dl}
|
||||
fi
|
||||
if [ "$(grep include/proxy.conf ${sitefile})" != "" ]; then
|
||||
if [ "$(grep include/proxy.conf ${sitefile})" != "" ] || [ "$(grep proxy_pass ${sitefile})" != "" ]; then
|
||||
type='Proxy'
|
||||
server=$(grep 'set $server' ${sitefile})
|
||||
server=${server#*\"}; server=${server%\"*}
|
||||
scheme=$(grep 'set $forward_scheme' ${sitefile})
|
||||
scheme=${scheme##* }; scheme=${scheme%;*}
|
||||
port=$(grep 'set $port' ${sitefile})
|
||||
port=${port##* }; port=${port%;*}
|
||||
proxyhost="${scheme}://${server}:${port}"
|
||||
if [ "$(grep include/proxy.conf ${sitefile})" != "" ]; then
|
||||
server=$(grep 'set $server' ${sitefile})
|
||||
server=${server#*\"}; server=${server%\"*}
|
||||
scheme=$(grep 'set $forward_scheme' ${sitefile})
|
||||
scheme=${scheme##* }; scheme=${scheme%;*}
|
||||
port=$(grep 'set $port' ${sitefile})
|
||||
port=${port##* }; port=${port%;*}
|
||||
proxyhost="${scheme}://${server}:${port}"
|
||||
else
|
||||
proxyhost="custom Proxy_pass"
|
||||
fi
|
||||
else
|
||||
type='HTTP'
|
||||
proxyhost=''
|
||||
|
||||
Reference in New Issue
Block a user