Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] Apache loadbalancer with tomcat 6

Nasir Zia

2010-05-24

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I have configured Apache loadbalancer with tomcat as backend i am getting 503 error in apache logs when accessing tomcat examples context. I have start with one tomcat behind single apache on same machine

Here is my httpd conf

<VirtualHost *:80>
        ServerName abc.com
        ProxyRequests Off
        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>
        ProxyPass /balancer-manager !
        ProxyPass /examples balancer://mycluster/examples/ stickysession=JSESSIONID nofailover=On
        ProxyPassReverse /examples ajp://abc.com:8009/examples/
        <Proxy balancer://mycluster>
          BalancerMember ajp://abc.com:8009/ route=public1
          ProxySet lbmethod=byrequests
        </Proxy>
</VirtualHost>
 
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.