diff options
Diffstat (limited to 'sca-cpp/trunk/modules/http/proxy-member-conf')
-rwxr-xr-x | sca-cpp/trunk/modules/http/proxy-member-conf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/http/proxy-member-conf b/sca-cpp/trunk/modules/http/proxy-member-conf index 2e279e87c7..83c43df49f 100755 --- a/sca-cpp/trunk/modules/http/proxy-member-conf +++ b/sca-cpp/trunk/modules/http/proxy-member-conf @@ -24,12 +24,17 @@ root=`echo "import os; print os.path.realpath('$1')" | python` host=$2 port=`$here/httpd-addr port $3` +if [ "$port" = "80" ]; then + portsuffix="" +else + portsuffix=":$port" +fi cat >>$root/conf/vhost.conf <<EOF # Generated by: proxy-member-conf $* # Add proxy balancer member -BalancerMember balancer://cluster http://$host:$port -ProxyPassReverse / http://$host:$port/ +BalancerMember balancer://cluster http://$host$portsuffix +ProxyPassReverse / http://$host$portsuffix/ EOF |