Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
informatique:reseau:apache:loadbalancing [2011/06/21 12:48] – modification externe 127.0.0.1 | informatique:reseau:apache:loadbalancing [2012/02/03 14:45] (Version actuelle) – bn8 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Modules apache à activer | + | ====== Load balancing ====== |
+ | |||
+ | |||
+ | ===== Modules apache à activer | ||
proxy* | proxy* | ||
- | Vhost pour le balancer | + | ===== Vhost pour le balancer |
< | < | ||
| | ||
- | | + | |
- | ServerAlias lineis.fr | + | ServerAlias lineis.fr |
- | DocumentRoot /var/www/ | + | DocumentRoot /var/www/ |
- | ProxyRequests Off | + | ProxyRequests Off |
- | <Proxy *> | + | |
- | Order deny, | + | |
- | Allow from all | + | Order deny, |
+ | Allow from all | ||
| | ||
- | | + | |
- | ProxyPass / | + | |
- | ProxyPass / balancer:// | + | |
- | ProxyPassReverse / http:// | + | ProxyPass / balancer:// |
- | ProxyPassReverse / http:// | + | ProxyPassReverse / http:// |
- | <Proxy balancer:// | + | ProxyPassReverse / http:// |
- | BalancerMember http:// | + | |
- | BalancerMember http:// | + | |
- | ProxySet lbmethod=byrequests | + | BalancerMember http:// |
- | </ | + | BalancerMember http:// |
+ | ProxySet lbmethod=byrequests | ||
+ | </ | ||
| | ||
- | | + | |
- | SetHandler balancer-manager | + | SetHandler balancer-manager |
- | Order deny, | + | Order deny, |
- | Allow from all | + | Allow from all |
- | </ | + | </ |
| | ||
</ | </ | ||
| | ||
- | Vhost pour la node01 | + | ===== Vhost pour la node01 |
< | < | ||
- | | + | |
- | DocumentRoot /var/www | + | DocumentRoot /var/www |
- | RewriteEngine On | + | RewriteEngine On |
- | RewriteRule .* - [CO=BALANCEID: | + | RewriteRule .* - [CO=BALANCEID: |
</ | </ | ||
| | ||
- | Vhost pour la node02 | + | ===== Vhost pour la node02 |
< | < | ||
- | | + | |
- | DocumentRoot /var/www | + | DocumentRoot /var/www |
- | RewriteEngine On | + | RewriteEngine On |
- | RewriteRule .* - [CO=BALANCEID: | + | RewriteRule .* - [CO=BALANCEID: |
</ | </ | ||