Howdy;
I’m doing some testing, and running into a weird limit – the path_beg
(and maybe other path
variants) seems to require a minimum of 4 characters total in the pattern before it will match. In the example below, be-four
be-five
and be-six
can all be reliably curl
ed, but any variation with 3 chars or less never match.
frontend http-in
bind *:80
use_backend be-three if { path_beg /a/ }
use_backend be-four if { path_beg /ab/ }
use_backend be-five if { path_beg /abc/ }
use_backend be-six if { path_beg /abcd/ }
Is this a documented/known behavior of path_beg
? I’m using the haproxy:1.9.10
Docker instance.
Thanks!
update
So what I’m running into isn’t a character limit - it’s the first use_backend
is getting ignored. If I simply duplicate the first use_backend
then it starts working as expected.
Still scratching my head on that.