Tuesday, September 11, 2007

load balancer trong apache

[sourcecode language='php']

<Proxy balancer://test>
BalancerMember http://10.0.0.2
BalancerMember http://10.0.0.3
BalancerMember http://10.0.0.4
</Proxy>

<VirtualHost 10.28.16.61>
ServerName an.vn
ServerAlias an.vn
ProxyPass / balancer://test/
ProxyPassReverse / balancer://test/
</VirtualHost>

[/sourcecode]

No comments:

Post a Comment