Hi Dave, Well, you have more efficient ACLs in latest HAProxy version: acl shard5 cook(userState) ND
Baptiste On Fri, Sep 27, 2013 at 8:34 PM, Dave Shevett <[email protected]> wrote: > Oops, answering my own question here... we figured it out. The > expression looks like this: > > acl shard5 hdr_reg(Cookie) userState=ND > > That'll use a back end called 'shard5' if there's a userState cookie > with the value ND > > On 9/27/13 1:31 PM, Dave Shevett wrote: >> I've seen a couple posts (here and on stackoverflow) on checking to see >> if a cookie exists, and setting an ACL based on that, but not what value >> it has. >> >> Am I going to need to use a regexp to parse a header cookie line? (I >> want to say 'if a cookie has value x, use backend x, if it has value y, >> use backend y). >> >> Thanks! >> >> -d > >

