【问题标题】:redirect/listen to port 8080 if 80 is unreachable, apache to lighttpd如果 80 无法访问,则重定向/监听端口 8080,apache 到 lighttpd
【发布时间】:2016-08-07 16:26:21
【问题描述】:

我在不同的端口上运行 apache 和 lighty,如果 apache 关闭,我想重定向。我必须使用 iptables 吗?

mod proxy_http 已启用,有什么可以轻松启用的吗?

有什么建议吗?

编辑: FORWARD 链?

【问题讨论】:

    标签: apache proxy iptables lighttpd ports


    【解决方案1】:

    您应该在 Apache 前面使用 haproxy 或 lighttpd 或 nginx 之类的东西,并配置它们中的任何一个以在 Apache 关闭时将请求发送到其他后端主机/服务器实例。 (Apache 也有这方面的模块,所以你可以在 Apache 前面运行 Apache。)

    【讨论】:

      猜你喜欢
      • 2012-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-21
      • 1970-01-01
      相关资源
      最近更新 更多