Hi,

For this type of matching, I would rather use path_beg, which will be
much more efficient:
acl use_server_1 path_beg /q/a /q/b /q/c
use backend server1 if user_server_1

acl use_server_2 path_beg /q/x /q/y
use backend server2 if user_server_2

Or just update your regex to the example below
acl use_server_1 path_reg ^/q/(a|b|c)
use backend server1 if user_server_1

acl use_server_2 path_reg ^/q/(x|y)
use backend server2 if user_server_2

Note: I did not try these ACLs, but they should work.

cheers



On Wed, Oct 24, 2012 at 1:12 AM, Rahul <[email protected]> wrote:
> Hi,
>   If I have URL of the form /q/a/1234 or /q/b/456 or /q/c/987
> and /q/x/abc or /q/y/3455
>
> I want to route any URLs of the form /q/[a|b|c]/.*
>
> i.e anything which is meant to the queues a or b or c to
> one backend,
> and anything which is meant for /q/[x|y]/.*  to a different
> backend, how would I achieve this?
>
> I attempted:
> acl use_server_1 path_reg /a|b|c/
> use backend server1 if user_server_1
>
> acl use_server_2 path_reg /x|y/
> use backend server2 if user_server_2
>
> This does not match routes correctly..Any ideas?
>
>
>
>
>
>

Reply via email to