diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-02 06:23:56 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2012-04-02 06:23:56 +0000 |
commit | 86b27d2bb7203724cf25cd134b2b4e1cefeacb42 (patch) | |
tree | 20a9dce5c91374491b836d63c2f9fecba3e92c1c /sca-cpp/trunk/modules/http/proxy-member-conf | |
parent | 13c04a6f477f49e3d33f6b71cf26e076a46d685f (diff) |
Add scripts to configure multiple load balancers on a proxy server.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1308247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-x | sca-cpp/trunk/modules/http/proxy-member-conf | 7 |
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 |