summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/http/proxy-member-conf
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/http/proxy-member-conf')
-rwxr-xr-xsca-cpp/trunk/modules/http/proxy-member-conf7
1 files changed, 6 insertions, 1 deletions
diff --git a/sca-cpp/trunk/modules/http/proxy-member-conf b/sca-cpp/trunk/modules/http/proxy-member-conf
index 83c43df49f..a046a4fd08 100755
--- a/sca-cpp/trunk/modules/http/proxy-member-conf
+++ b/sca-cpp/trunk/modules/http/proxy-member-conf
@@ -30,10 +30,15 @@ else
portsuffix=":$port"
fi
+bal=$4
+if [ "$bal" = "" ]; then
+ bal="cluster"
+fi
+
cat >>$root/conf/vhost.conf <<EOF
# Generated by: proxy-member-conf $*
# Add proxy balancer member
-BalancerMember balancer://cluster http://$host$portsuffix
+BalancerMember balancer://$bal http://$host$portsuffix
ProxyPassReverse / http://$host$portsuffix/
EOF