On Fri, Jul 29, 2016 at 11:16 AM, Igor Cicimov <
[email protected]> wrote:

>
>
> On Thu, Jul 28, 2016 at 6:55 PM, Juriy Strashnov <[email protected]>
> wrote:
>
>> Hi, all!
>>
>> HA-Proxy version 1.5.14 2015/07/02
>> haproxy-1.5.14-3.el7.x86_64 (centos 7)
>>
>> Found strange behaviour of path_reg:
>>
>>     acl userhost15 hdr_dom(host) -i host1.example.com
>>     acl userpub15_1t  path_beg /test_location/
>>     acl userpub15_1s  path_reg ^/test_location$
>>     use_backend server_user15_1 if userhost15 userpub15_1t || userpub15_1s
>>
>> Is not working as expected - https://host1.example.com/test_location
>> returns 503, while https://host1.example.com/test_location--->/<---
>> works great.
>>
>
> Hmmm, if https://host1.example.com/test_location/ is working and is
> caught by the "path_beg /test_location/" ACL doesn't that mean that the
> underscore does not cause any issues for the path_beg ?
>
> I guess you can also try:
>
>  acl userpub15_1s  path_reg ^/test_location[/]?$
>
> and dump the path_beg one.
>
>
>>     acl userhost16 hdr_dom(host) -i host2.example.com
>>     acl userpub16_1t  path_beg /testloc2/
>>     acl userpub16_1s  path_reg ^/testloc2$
>>     use_backend server_user16_1 if userhost16 userpub16_1t || userpub16_1s
>>
>> If there're no "_" symbol in path_beg everything is working as expected.
>>
>
Just noticed that what you said above in the email is different from what
you have in the mail title. So guess the problem you have is with path_reg
and not path_beg ??

In that case try escaping the underscore:

acl userpub15_1s  path_reg ^/test\_location[/]?$



>
>> What I'm doing wrong?
>>
>> --
>> Best regards, Juriy Strashnov
>>
>> Please consider the environment before printing this email.
>>
>
>
>

Reply via email to