haproxy - 将 haproxy 从 url 重定向到另一个保持相同的路径/uri
问题描述
我想重定向如下示例,保持相同的路径/uri,但更改 url。
https://test1.com/example1/example2 --> https://test2.com/example1/example2
我设法只通过创建一个 acl acl_name 基本 url 来为 url 做到这一点,然后使用 if conidtion 执行重定向代码 301。
谢谢,
解决方案
推荐阅读
- python - 从 Python 运行的 VBA 弹出窗口中选择一个文件夹
- sql - 从另一个表 SQL 中选择最近的日期
- racket - 在 Racket 中使用 eval 编写代码的替代方法
- javascript - 如何在动漫js中管理动画顺序
- python - 在 Tkinter 中使用变量值 - AttributeError: 'unicode' object has no attribute 'tk'
- powershell - 请你指点我一个Powershell,鼠标教程
- python - 如何通过熊猫数据框中的值组找到 n 个最大值的总和?
- c# - 如何从.net中的字节数组解析STUN消息
- java - 整数数组的除法和求和
- java - 如何手动验证 EditText?