mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Update v-change-web-domain-proxy-tpl
This commit is contained in:
parent
b40bad31ea
commit
cac3b0617f
1 changed files with 19 additions and 4 deletions
|
@ -54,11 +54,26 @@ is_proxy_template_valid $template
|
|||
# Parsing domain values
|
||||
get_domain_values 'web'
|
||||
local_ip=$(get_real_ip $IP)
|
||||
ipv6=$IP6
|
||||
|
||||
# Delete old vhost
|
||||
del_web_config "$PROXY_SYSTEM" "$PROXY.tpl"
|
||||
if [ "$SSL" = 'yes' ]; then
|
||||
del_web_config "$PROXY_SYSTEM" "$PROXY.stpl"
|
||||
# Deleting vhost configuration IPv4
|
||||
if [ ! -z "$local_ip" ]; then
|
||||
old=$local_ip
|
||||
# Deleting proxy
|
||||
del_web_config "$PROXY_SYSTEM" "$PROXY.tpl"
|
||||
if [ "$SSL" = 'yes' ]; then
|
||||
del_web_config "$PROXY_SYSTEM" "$PROXY.stpl"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Deleting domain
|
||||
if [ ! -z "$IP6" ]; then
|
||||
old=$IP6
|
||||
|
||||
del_web_config "$PROXY_SYSTEM" "$PROXY.tpl"
|
||||
if [ "$SSL" = 'yes' ]; then
|
||||
del_web_config "$PROXY_SYSTEM" "$PROXY.stpl"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add new vhost
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue