首页 > 解决方案 > 将 haproxy 从 url 重定向到另一个保持相同的路径/uri

问题描述

我想重定向如下示例,保持相同的路径/uri,但更改 url。

https://test1.com/example1/example2 --> https://test2.com/example1/example2

我设法只通过创建一个 acl acl_name 基本 url 来为 url 做到这一点,然后使用 if conidtion 执行重定向代码 301。

谢谢,

标签: haproxy

解决方案


推荐阅读