简体   繁体   English

如果缺少上下文,如何重定向到“维护模式”页面

[英]How to redirect to a “Maintenance Mode” page if context is missing

I have a webapp deployed with a war archive on a tomcat 6 server. 我在tomcat 6服务器上部署了带有战争存档的webapp。 There is a clean way to instrument Tomcat to redirect to a "Maintenance Mode" page if my webapps is undeployed? 如果我的Web应用程序未部署,有一种干净的方法可以检测Tomcat重定向到“维护模式”页面?

I mean some sort of Tomcat component that dinamically intercept all request to my webapp and redirect them to another webapp (maybe ROOT) page to inform my users that the application is temporarily down. 我的意思是某种Tomcat组件可以动态地拦截对我的Web应用程序的所有请求,然后将它们重定向到另一个Web应用程序(可能是ROOT)页面,以通知用户该应用程序暂时关闭。

安装apache httpd的 ,它使用Tomcat连接到代理的请求,Tomcat和Apache配置HTTPD作为五百零三分之四百零四错误页面,显示维护页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM