Skip to content

Commit 2ee02ea

Browse files
committed
fixed nginx rebuild bug
1 parent 9e921c4 commit 2ee02ea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bin/v_rebuild_web_domains

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ is_user_suspended
4141
# Action #
4242
#----------------------------------------------------------#
4343

44+
# Defining port configuration
45+
proxy_port=$(get_config_value '$PROXY_PORT')
46+
proxy_ssl_port=$(get_config_value '$PROXY_SSL_PORT')
47+
web_port=$(get_config_value '$WEB_PORT')
48+
web_ssl_port=$(get_config_value '$WEB_SSL_PORT')
49+
4450
# Defining config
4551
conf="$V_USERS/$user/web.conf"
4652

@@ -60,7 +66,6 @@ for domain in $domains; do
6066
template=$(get_web_domain_value '$TPL')
6167
tpl_file="$V_WEBTPL/apache_$template.tpl"
6268
ip=$(get_web_domain_value '$IP')
63-
web_port=$(get_config_value '$WEB_PORT')
6469
domain_idn=$(idn -t --quiet -a "$domain")
6570
group="$user"
6671
docroot="$V_HOME/$user/web/$domain/public_html"
@@ -125,7 +130,7 @@ for domain in $domains; do
125130
same) docroot="$V_HOME/$user/web/$domain/public_html" ;;
126131
*) check_args '3' "$#" 'user domain certificate [sslhome]'
127132
esac
128-
web_ssl_port=$(get_config_value '$WEB_SSL_PORT')
133+
129134

130135
# Adding domain to the shttpd.conf
131136
conf="$V_HOME/$user/conf/tmp_shttpd.conf"

0 commit comments

Comments
 (0)