...
Code Block |
---|
<VirtualHost *:80> ProxyRequests off ServerName dccrowd.twoseed.co.kr Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED <Proxy balancer://crowdcluster> # Crowd node 1 (make sure there are no trailing slashes after port number) BalancerMember http://14.36***.***.48.220/:7195 route=node1 # Crowd node 2 (make sure there are no trailing slashes after port number) BalancerMember http://175.197***.***.124.236:7195 route=node2 # Security "we aren't blocking anyone but this the place to make those changes Order Deny,Allow Deny from none Allow from all # Load Balancer Settings # We are not really balancing anything in this setup, but need to configure this ProxySet lbmethod=byrequests ProxySet stickysession=ROUTEID </Proxy> # Here's how to enable the load balancer's management UI if desired <Location /balancer-manager> SetHandler balancer-manager # You SHOULD CHANGE THIS to only allow trusted ips to use the manager Order deny,allow Allow from all </Location> # Don't reverse-proxy requests to the management UI ProxyPass /balancer-manager ! # Reverse proxy all other requests to the Crowd cluster ProxyPass / balancer://crowdcluster/ ProxyPreserveHost on ProxyPassReverse / balancer://mycluster/ </VirtualHost> |
...