From 2ee02ea6db47a8ebef6f24cb1ec56636b0e1dc1a Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 25 Aug 2011 23:59:47 +0300 Subject: [PATCH] fixed nginx rebuild bug --- bin/v_rebuild_web_domains | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/v_rebuild_web_domains b/bin/v_rebuild_web_domains index 172529fb2..989aec3f5 100755 --- a/bin/v_rebuild_web_domains +++ b/bin/v_rebuild_web_domains @@ -41,6 +41,12 @@ is_user_suspended # Action # #----------------------------------------------------------# +# Defining port configuration +proxy_port=$(get_config_value '$PROXY_PORT') +proxy_ssl_port=$(get_config_value '$PROXY_SSL_PORT') +web_port=$(get_config_value '$WEB_PORT') +web_ssl_port=$(get_config_value '$WEB_SSL_PORT') + # Defining config conf="$V_USERS/$user/web.conf" @@ -60,7 +66,6 @@ for domain in $domains; do template=$(get_web_domain_value '$TPL') tpl_file="$V_WEBTPL/apache_$template.tpl" ip=$(get_web_domain_value '$IP') - web_port=$(get_config_value '$WEB_PORT') domain_idn=$(idn -t --quiet -a "$domain") group="$user" docroot="$V_HOME/$user/web/$domain/public_html" @@ -125,7 +130,7 @@ for domain in $domains; do same) docroot="$V_HOME/$user/web/$domain/public_html" ;; *) check_args '3' "$#" 'user domain certificate [sslhome]' esac - web_ssl_port=$(get_config_value '$WEB_SSL_PORT') + # Adding domain to the shttpd.conf conf="$V_HOME/$user/conf/tmp_shttpd.conf"