Apache - 后端服务器出现故障时自动重定向到维护页面
Apache - Automatically redirect to maintenance page when backend server goes down
我正在尝试找到一种解决方案,以在后端应用程序服务器出现故障时自动将 Apache 重定向到维护页面。
当后端 WebLogic 服务器关闭 patching/deployment 时,我有手动解决方案 (RewriteCond),我在 Apache 配置文件中添加了 RewriteCond。这种手动方法工作正常。
我还尝试了 .htaccess
错误文档 500 /maintenance/MaintenancePage.html
错误文档 404 /maintenance/MaintenancePage.html
错误文档 401 /maintenance/PortalMaintenancePage.html
错误文档 503 /maintenance/PortalMaintenancePage.html
但是当 weblogic 服务器关闭时,Apache 不会重定向到带有上述 ErrorDocument 的维护页面。
当 WebLogic 关闭时,Apache 显示以下错误 -
Web 服务器桥接失败:
没有可用于连接的后端服务器:10 秒后超时或幂等设置为 OFF 或方法不是幂等的。
有什么方法可以告诉 Apache 在后端应用程序或 WebLogic 服务器关闭时自动重定向到维护页面。
我欢迎任何其他解决方案或替代方案来解决此问题。
感谢您的帮助
使用 WebLogic Web 服务器插件中的 ErrorPage 参数重定向到所需页面。
https://docs.oracle.com/middleware/1212/webtier/PLGWL/plugin_params.htm#PLGWL473
感谢 Brain Ochs。我确实在 WebLogic Web 服务器插件中添加了 ErrorPage 参数并且它起作用了。非常感谢
我正在尝试找到一种解决方案,以在后端应用程序服务器出现故障时自动将 Apache 重定向到维护页面。
当后端 WebLogic 服务器关闭 patching/deployment 时,我有手动解决方案 (RewriteCond),我在 Apache 配置文件中添加了 RewriteCond。这种手动方法工作正常。
我还尝试了 .htaccess
错误文档 500 /maintenance/MaintenancePage.html
错误文档 404 /maintenance/MaintenancePage.html
错误文档 401 /maintenance/PortalMaintenancePage.html
错误文档 503 /maintenance/PortalMaintenancePage.html
但是当 weblogic 服务器关闭时,Apache 不会重定向到带有上述 ErrorDocument 的维护页面。
当 WebLogic 关闭时,Apache 显示以下错误 -
Web 服务器桥接失败: 没有可用于连接的后端服务器:10 秒后超时或幂等设置为 OFF 或方法不是幂等的。
有什么方法可以告诉 Apache 在后端应用程序或 WebLogic 服务器关闭时自动重定向到维护页面。
我欢迎任何其他解决方案或替代方案来解决此问题。
感谢您的帮助
使用 WebLogic Web 服务器插件中的 ErrorPage 参数重定向到所需页面。
https://docs.oracle.com/middleware/1212/webtier/PLGWL/plugin_params.htm#PLGWL473
感谢 Brain Ochs。我确实在 WebLogic Web 服务器插件中添加了 ErrorPage 参数并且它起作用了。非常感谢