Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache-当后端服务器停机时自动重定向到维护页面_Apache_Weblogic - Fatal编程技术网

Apache-当后端服务器停机时自动重定向到维护页面

Apache-当后端服务器停机时自动重定向到维护页面,apache,weblogic,Apache,Weblogic,我正试图找到一种解决方案,在后端应用程序服务器停机时自动将Apache重定向到维护页面 我有手动解决方案(RewriteCond),当后端WebLogic服务器关闭以进行修补/部署时,我将RewriteCond添加到Apache配置文件中。这种手工方法很好用 我还尝试了.htaccess ErrorDocument 500/maintenance/MaintenancePage.html 错误文档404/maintenance/MaintenancePage.html ErrorDocument

我正试图找到一种解决方案,在后端应用程序服务器停机时自动将Apache重定向到维护页面

我有手动解决方案(RewriteCond),当后端WebLogic服务器关闭以进行修补/部署时,我将RewriteCond添加到Apache配置文件中。这种手工方法很好用

我还尝试了.htaccess

ErrorDocument 500/maintenance/MaintenancePage.html

错误文档404/maintenance/MaintenancePage.html

ErrorDocument 401/maintenance/PortalMaintenance Page.html

错误文档503/maintenance/PortalMaintenancePage.html

但是,当weblogic服务器关闭时,Apache不会使用上述错误文档重定向到维护页面

当WebLogic关闭时,Apache显示以下错误-

Web服务器网桥故障: 没有可用于连接的后端服务器:10秒后超时,或幂等设置为OFF,或方法不幂等

当后端应用程序或WebLogic服务器关闭时,有没有办法告诉Apache自动重定向到维护页面

我欢迎解决这一问题的任何其他解决办法或替代办法


感谢您的帮助

使用WebLogic Web服务器插件中的ErrorPage参数重定向到所需页面


谢谢你的帮助。我确实在WebLogic Web服务器插件中添加了ErrorPage参数,并且成功了。非常感谢

在实现ErrorPage参数后,我做了一些测试,但以下各项不起作用:如果WebLogic服务器关闭,则ErrorPage参数起作用如果WebLogic服务器正在运行,并且只有应用程序关闭,则ErrorPage不起作用。它显示404错误。我不明白为什么Apache在应用程序关闭时不重定向到维护页面,如果我们使用abc.com/AppName,但当我们使用任何其他名称(如abc.com/test等)时会重定向到维护页面。为什么Apache只将abc.com/AppName视为404而不是其他。我遇到的问题与这个问题类似,但没有解决办法。这是正确的。只有WebLogic关闭时,ErrorPage才会工作。停止应用程序的404问题对于WebLogic来说有点奇怪。