====== Load balancing ======
===== Modules apache à activer =====
proxy*
===== Vhost pour le balancer =====
ServerName vmnico.lineis.fr
ServerAlias lineis.fr
DocumentRoot /var/www/
ProxyRequests Off
Order deny,allow
Allow from all
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ stickysession=BALANCEID nofailover=Off
ProxyPassReverse / http://node01.lineis.fr/
ProxyPassReverse / http://node02.lineis.fr/
BalancerMember http://node01.lineis.fr route=node01
BalancerMember http://node02.lineis.fr route=node02
ProxySet lbmethod=byrequests
SetHandler balancer-manager
Order deny,allow
Allow from all
===== Vhost pour la node01 =====
ServerName node01.lineis.fr
DocumentRoot /var/www
RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.node01:.lineis.fr]
===== Vhost pour la node02 =====
ServerName node02.lineis.fr
DocumentRoot /var/www
RewriteEngine On
RewriteRule .* - [CO=BALANCEID:balancer.node02:.lineis.fr]