Skip to content

Commit a2838f4

Browse files
committed
new apache configuration concept
1 parent 67c4318 commit a2838f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

func/domain_func.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,10 +813,12 @@ namehost_ip_support() {
813813
if [ "$WEB_SSL" = 'mod_ssl' ]; then
814814
web_ssl_port=$(get_config_value '$WEB_SSL_PORT')
815815
sed -i "$conf_ins i NameVirtualHost $ip:$web_ssl_port" $conf
816+
sed -i "$conf_ins i Listen $ip:$web_ssl_port" $conf
816817
fi
817818

818819
web_port=$(get_config_value '$WEB_PORT')
819820
sed -i "$conf_ins i NameVirtualHost $ip:$web_port" $conf
821+
sed -i "$conf_ins i Listen $ip:$web_port" $conf
820822

821823
# Checking proxy support
822824
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
@@ -838,6 +840,7 @@ namehost_ip_disable() {
838840
#Checking web system
839841
if [ "$WEB_SYSTEM" = 'apache' ]; then
840842
sed -i "/NameVirtualHost $ip:/d" $conf
843+
sed -i "/Listen $ip:/d" $conf
841844

842845
# Checking proxy support
843846
if [ "$PROXY_SYSTEM" = 'nginx' ]; then

0 commit comments

Comments
 (0)