开发者

How to redirect to a "Maintenance Mode" page if context is missing

开发者 https://www.devze.com 2023-03-05 04:25 出处:网络
I have a webapp deployed with a war archive on a tomcat 6 server. There is a clean way to instrument Tomcat to redirect to a \"Maintenance Mode\" page if my webapps is undeployed?

I have a webapp deployed with a war archive on a tomcat 6 server. There is a clean way to instrument Tomcat to redirect to a "Maintenance Mode" page if my webapps is undeployed?

I mean some sort of Tomcat component that dinamically intercept all request to my webapp开发者_如何学Python and redirect them to another webapp (maybe ROOT) page to inform my users that the application is temporarily down.


Install Apache HTTPD which uses Tomcat Connector to proxy the requests to Tomcat and configure Apache HTTPD to display the maintenance page as 404/503 error page.

0

精彩评论

暂无评论...
验证码 换一张
取 消