【问题标题】:How to redirect to a "Maintenance Mode" page if context is missing如果缺少上下文,如何重定向到“维护模式”页面
【发布时间】:2011-05-12 13:21:11
【问题描述】:

我在 tomcat 6 服务器上部署了一个带有战争档案的 web 应用程序。 如果我的 web 应用程序未部署,是否有一种干净的方法可以检测 Tomcat 以重定向到“维护模式”页面?

我的意思是某种 Tomcat 组件,它会动态拦截对我的 webapp 的所有请求,并将它们重定向到另一个 webapp(可能是 ROOT)页面,以通知我的用户应用程序暂时关闭。

【问题讨论】:

    标签: web-applications tomcat servlets maintenance-mode


    【解决方案1】:

    安装Apache HTTPD,它使用Tomcat Connector将请求代理到Tomcat并配置Apache HTTPD以将维护页面显示为404/503错误页面。

    【讨论】:

      猜你喜欢
      • 2017-07-08
      • 2021-09-14
      • 2011-12-07
      • 1970-01-01
      • 2014-05-15
      • 2013-10-20
      • 2015-12-06
      • 1970-01-01
      • 2018-11-17
      相关资源
      最近更新 更多