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.

    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.

What I'm doing wrong?

-- 
Best regards, Juriy Strashnov

Please consider the environment before printing this email.

Reply via email to