Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Url rewriting haproxy配置中的Requirep参数出现问题_Url Rewriting_Haproxy - Fatal编程技术网

Url rewriting haproxy配置中的Requirep参数出现问题

Url rewriting haproxy配置中的Requirep参数出现问题,url-rewriting,haproxy,Url Rewriting,Haproxy,我当前的网址是 http://10.24.23.20/textr/mine.php 通过haproxy重写url,我想把它传输到 http://10.24.23.20/#/textr/mine.php` 为此,我使用了以下REQUIREP规则,但没有一个有效 请求请求^[^\]*\/textr/*\1\/\/textr/\2 请求^\b\w{4}://10.24.23.20/\\btextr/*\1\/\2 第一个将url转换为http://10.24.23.20/textr/mine.ph

我当前的网址是

http://10.24.23.20/textr/mine.php
通过haproxy重写url,我想把它传输到

http://10.24.23.20/#/textr/mine.php`
为此,我使用了以下REQUIREP规则,但没有一个有效

请求请求^[^\]*\/textr/*\1\/\/textr/\2

请求^\b\w{4}://10.24.23.20/\\btextr/*\1\/\2

第一个将url转换为http://10.24.23.20/textr/mine.php/ 第二个根本什么都做不了


有人能帮我解决这个问题吗。

我在没有经过适当研究的情况下发布了这个问题。。我在问题中提到的第一种转换格式本身运行良好

REQUIREP^[^\]*\/textr/*\1\//textr/\2

错误在于我在haproxy.cfg文件中错误地添加了空格。一旦我清除所有已开始工作且URL已在服务器和基本文件夹之间转换