Jump to content

Archived

This topic is now archived and is closed to further replies.

yxselamxy

load balancing

Recommended Posts

hi.

I want to configure appache for load balancing.

i have 2 tomcat server on 2 different machines. and i have apache on another machine.

please can you tell me how to configure mod_proxy for load balancing.

i have load the modules and configure it like the following:

 

<IfModule mod_proxy.c>

ProxyRequests off

 

ProxyPass / http://host1:8084/

ProxyPassReverse / http://host1:8084/

 

ProxyPass / http://host2:8084/

ProxyPassReverse / http://host2:8084/

 

</IfModule>

 

but apache do not make load balancing he always try to connect to host1.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.