Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当主 Web 服务器关闭或在 80 端口上不再响应时,有没有办法自动显示 HTML“维护通知”页面?
我想这是一个应该完成这项工作的应用程序......
注意:“主 Web 服务器”不是 IIS。
您想要的可能是某种会定期检查主服务器的脚本,例如使用 wget。
如果有回应,一切都好。
如果没有,您必须将流量重定向到另一台显示维护通知的服务器。如何做到这一点取决于您的设置,例如,如果您在 NAT 之后,您可以更改它,以便到端口 80 的连接指向备份服务器。