Apache2代理Tomcat6在启动时防止503错误

tomcat6启动时,所有的http请求都被服务器保留,并在服务器启动时发送响应。

但是当我使用apache2作为代理的时候,apache2在tomcat启动的时候会响应503错误。 我怎样才能防止这个默认的Apache代理的行为?

我的apache虚拟主机configuration如下所示:

<VirtualHost 0.0.0.0:[PORT]> ProxyPreserveHost On ProxyVia full <proxy> Order deny,allow Allow from all </proxy> ProxyPass /[PATH] http://localhost:8080/[PATH2] ProxyPassReverse /[PATH] http://localhost:8080/[PATH2] </VirtualHost> 

我有一个可能的解决scheme,但不是100%满意。 这似乎与httpd版本2.2.22。

 ProxyRequests Off ProxyPreserveHost On <Proxy balancer://mycluster> BalancerMember http://localhost:8080 </Proxy> ProxyPass / balancer://mycluster/ maxattempts=1000 ProxyPassReverse / balancher://mycluster/ 

平衡器参数maxattempts设置平衡器在循环通过平衡器成员时将使用的尝试次数,并在失败时向它们发送请求。 我宁愿有一个超时解决scheme,但我还没有发现任何工作以外的其他工作。