Skip to main content

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:

<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> 

Sorry for my english!

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:

<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> 

Sorry for my english!

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:

<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> 
Post Migrated Here from stackoverflow.com (revisions)
Source Link
aalmeida88
aalmeida88

Apache2 proxy Tomcat6 prevent 503 error while starting

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:

<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> 

Sorry for my english!