haproxy 去钓鱼

发布于 2025-01-03 18:06:13 字数 1549 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌酱 2025-01-10 18:06:13

这个问题很老了,但也许有人会发现答案很有用。听起来您正在寻找“备份”选项:

当服务器线路上存在“备份”时,该服务器仅在所有其他非备份服务器不可用时用于负载平衡。

参考:http://code.google.com/p/haproxy-docs/wiki /ServerOptions

配置行对于提供“Oops”页面的本地 apache 实例可能如下所示:

server localhost 127.0.0.1:80 backup

This question is pretty old but maybe someone will find the answer useful. It sounds like you're looking for the "backup" option:

When "backup" is present on a server line, the server is only used in load balancing when all other non-backup servers are unavailable.

Ref: http://code.google.com/p/haproxy-docs/wiki/ServerOptions

A config line for a local apache instance serving an "Oops" page might look something like this:

server localhost 127.0.0.1:80 backup

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文