【发布时间】:2018-11-12 14:11:03
【问题描述】:
目前,我们有基于 tomcat 的部署和一个 Apache 服务器来管理同一端口上的多个上下文路径(v-host 配置)
例如,
ProxyPassMatch /test(.) http://127.0.0.1:7077/test$1*
ProxyPassMatch /test2(.) http://127.0.0.1:7077/test2$1*
等等
现在我们正在转向 AWS 的 ALB,我们希望将 ALB 中的所有上下文路径映射到 Apache 配置文件中。
我们创建了 ALB --> 80 端口上的侦听器 --> 使用端口 7077 的必要实例创建的目标 --> 健康检查通过
监听规则是,
上下文路径 /test --> 转发到 7077 端口的目标组
上下文路径 /test2 --> 转发到 7077 端口的目标组
但在测试时,当我们关闭 Apache 并测试 ALB 时,它显示 502 Bad Gateway
有什么解决办法吗?
【问题讨论】:
标签: amazon-web-services amazon-elb