Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

While tomcat6 is starting up all my http requests are retained by the server and sends the response when the server is up.

But when I use an apache2 as a proxy the apache2 responds inmediatly a 503 error when the tomcat is starting. How can I prevent this default behaviour of apache proxy?

My apache virtualhost configuration looks like:

  ProxyPreserveHost On
  ProxyVia full

    Order deny,allow
    Allow from all

  ProxyPass        /[PATH] http://localhost:8080/[PATH2]
  ProxyPassReverse /[PATH] http://localhost:8080/[PATH2]


Sorry for my english!

share|improve this question

migrated from Apr 29 '13 at 12:22

This question came from our site for professional and enthusiast programmers.

1 Answer 1

I have a possible solution but am not 100% satisfied with it. This seems to work with httpd version 2.2.22.

ProxyRequests Off
ProxyPreserveHost On

<Proxy balancer://mycluster>
    BalancerMember http://localhost:8080

ProxyPass / balancer://mycluster/ maxattempts=1000
ProxyPassReverse / balancher://mycluster/

The balancer parameter maxattempts sets the number of attempts that the balancer will use while cycling through balancer members and sending them requests while they fail. I'd rather have a solution with a timeout but I haven't found anything that worked other than maxattempts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.