Re: haproxy content switching on url parameters?

2012-07-29 Thread Reve
Holger Just writes: > > I want to go to a different set of backends if > > x1<0, y1<0 -> backends set 1 > > x1<0, y1>0 -> backends set 2 > > x1>0, y1<0 -> backends set 3 > > x1>0, y1>0 -> backends set 4 > > acl x1_lt_0 url_reg [?&]x1=-\d+ > acl x1_gt_0 url_reg [?&]x1=[1-9][0-9]* > acl y1_lt_0

Re: haproxy content switching on url parameters?

2012-07-29 Thread Holger Just
Reve, On 2012-07-28 19:46, Reve wrote: > let's say I have this URL > /blah?x1=5&x2=-5&y1=-1&y2=50 > > I want to go to a different set of backends if > x1<0, y1<0 -> backends set 1 > x1<0, y1>0 -> backends set 2 > x1>0, y1<0 -> backends set 3 > x1>0, y1>0 -> backends set 4 You can't actually pars