Sean O'Reilly wrote:
> On Fri, 23 Jun 2006 09:05:18 -0500
> Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> I am sure it would be easier to use mod_proxy_balancer and
> mod_proxy_ajp but can't find any documentation anywhere.

My servers didn't have their clocks synchronised, check that.
Also try using the most basic cluster config to start with and work up
to more complex variations.

There's not much to configure for proxy_ajp / balancer.
We're running Apache2.2 + Tomcat 5.5.17 + with mod_proxy_ajp &c.
AJP needs no config, which is nice.
Balancer also needs very little, see mod_proxy for details.
The route=TCS1 parameter is the jvmRoute set in the tomcat Engine.

### put this in your Apache vhost/conf

ReWriteEngine     on
ProxyPreserveHost On
ProxyRequests     Off
ProxyVia          Off

<Proxy balancer://mycluster>
   BalancerMember ajp://tomcat1:8009 smax=10 loadfactor=10 route=TCS1
   BalancerMember ajp://tomcat2:8009 smax=10 loadfactor=10 route=TCS2
</Proxy>

RewriteRule ^\/(.+)\.jsp(.+)? balancer://mycluster/$1.jsp$2 [P,L]

ProxyPass /favicon.ico !
ProxyPass /robots.txt  !
ProxyPass /images/     !
ProxyPass /forms/ balancer://mycluster/forms/ \
maxattempts=1 lbmethod=bytraffic stickysession=JSESSIONID




> Thanks for the help so far guys.
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to