Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ProxyRequests off
- ServerName domain.com
- <Proxy balancer://writecluster>
- # WebHead1 or master server
- BalancerMember http://10.176.42.144:80
- # WebHead2
- BalancerMember http://10.176.42.148:80
- # Security "technically we aren't blocking
- # anyone but this the place to make those
- # chages
- Order Deny,Allow
- Deny from none
- Allow from all
- # Load Balancer Settings
- # We will be configuring a simple Round
- # Robin style load balancer. This means
- # that all webheads take an equal share of
- # of the load.
- ProxySet lbmethod=byrequests
- </Proxy>
- # balancer-manager
- # This tool is built into the mod_proxy_balancer
- # module and will allow you to do some simple
- # modifications to the balanced group via a gui
- # web interface.
- <Location /balancer-manager>
- SetHandler balancer-manager
- # I recommend locking this one down to your
- # your office
- Order deny,allow
- Allow from all
- </Location>
- # Point of Balance
- # This setting will allow to explicitly name the
- # the location in the site that we want to be
- # balanced, in this example we will balance "/"
- # or everything in the site.
- ProxyPass /balancer-manager !
- ProxyPass / balancer://writecluster/
- # Enable mod_rewrite
- RewriteEngine On
- # Send POST, PUT, and DELETEs to "write" balancer
- RewriteCond %{REQUEST_METHOD} ^(POST|PUT|DELETE)$
- RewriteRule ^/(.*)$http://10.176.42.144:80/$1 [P,QSA,L]
- # Modify HTTP response headers (e.g. Location)
- ProxyPassReverse / balancer://writecluster
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement