File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -816,6 +816,7 @@ dom_clear_list() {
816816namehost_ip_support () {
817817 # Checking web system
818818 if [ " $WEB_SYSTEM " = ' apache' ]; then
819+
819820 # Checking httpd config for NameHost string number
820821 conf_line=$( grep -n " NameVirtual" $conf | tail -n 1| cut -f 1 -d ' :' )
821822 if [ ! -z " $conf_line " ]; then
@@ -826,16 +827,18 @@ namehost_ip_support() {
826827
827828 # Checking ssl support
828829 if [ " $WEB_SSL " = ' mod_ssl' ]; then
829- ssl_port =$( get_web_port_ssl ) # calling internal function
830- sed -i " $conf_ins i NameVirtualHost $ip :$ssl_port " $conf
830+ web_ssl_port =$( get_config_value ' $WEB_SSL_PORT ' )
831+ sed -i " $conf_ins i NameVirtualHost $ip :$web_ssl_port " $conf
831832 fi
832- port=$( get_web_port) # calling internal function
833- sed -i " $conf_ins i NameVirtualHost $ip :$port " $conf
833+
834+ web_port=$( get_config_value ' $WEB_PORT' )
835+ sed -i " $conf_ins i NameVirtualHost $ip :$web_port " $conf
834836
835837 # Checking proxy support
836838 if [ " $PROXY_SYSTEM " = ' nginx' ]; then
839+ proxy_port=$( get_config_value ' $PROXY_PORT' )
837840 cat $V_WEBTPL /ngingx_ip.tpl | sed -e " s/%ip%/$ip /g" \
838- -e " s/%web_port%/$port /g" -e " s/%proxy_port%/80 /g" >> $nconf
841+ -e " s/%web_port%/$web_port /g" -e " s/%proxy_port%/$proxy_port /g" >> $nconf
839842
840843 # Adding to rpaf ip pool as well
841844 ips=$( grep ' RPAFproxy_ips' $rconf )
You can’t perform that action at this time.
0 commit comments