【问题标题】:apache configuration for hybrishybris 的 apache 配置
【发布时间】:2016-08-17 15:40:14
【问题描述】:

我有一台网络服务器和两台 hybris 服务器。例如:

网络服务器 - http://10.0.0.1
Hybris - http://10.0.0.2:9001http://10.0.0.3:9001

现在我想使用网络服务器作为负载平衡器来重定向请求。重定向工作正常,但在重定向期间它会暴露我不想要的 hybris IP。我想将网络服务器 IP 公开。

我如何为此编写重定向规则。非常感谢任何帮助。

谢谢,

【问题讨论】:

  • 您能添加您当前的配置吗?

标签: hybris mod-alias mod-proxy-balancer


【解决方案1】:

基本上,您希望在 apache 配置中包含以下内容:

<Proxy balancer://cluster>
BalancerMember http://10.0.0.2:9001 route=node1
BalancerMember http://10.0.0.3:9001 route=node2
</Proxy>

ProxyPass / balancer://cluster/
ProxyPassReverse / balancer://cluster/

通过使用这样的代理,它对用户来说是透明的。在官方文档here 中查看有关如何配置 hybris 以使用 Apache 的更多信息。

【讨论】:

    猜你喜欢
    • 2021-02-12
    • 2013-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-13
    • 1970-01-01
    • 1970-01-01
    • 2018-10-06
    相关资源
    最近更新 更多