Using Apache as proxy server + Tomcat -


i trying show custom page when tomcat down, in order usign apache server. trying redirect request tomcat (localhost:8080), except request start '/error', how can that? have tried in httpd.conf file:

errordocument 503 /error/503.html  <ifmodule proxy_http_module>  proxypass /error http://localhost/ retry=0 proxypassreverse /error http://localhost/  proxypass / http://localhost:8080/ retry=0 proxypassreverse / http://localhost:8080/  </ifmodule> 

but didn't success.

did @ httpd documentation proxypass before asking question?

you want

proxypass /error ! 

to exclude paths starting /error


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -