【发布时间】:2021-06-30 01:35:50
【问题描述】:
我正在尝试使用 HA 代理作为反向代理,主要用于负载平衡和健康检查。
因此,我必须使用多个子域和/或子路径来处理不同的域。
- https://sub1.example1.com
- https://subsub.sub1.example1.com
- https://sub2.example2.com
- https://example3.com/path1
不幸的是,我没有找到机会为每个域定义一个前端以将 SSL-cert-file 绑定到。 此外,我不太确定 HAProxy 是否提供类似 ProxyPass 的东西来处理“路径”-Stuff。
谁能给我一个例子,如何用 HAProxy 解决这个问题?
谢谢
【问题讨论】:
标签: ssl subdomain reverse-proxy haproxy