My relevant haproxy configuration is:

acl has_bbb_cookie hdr(cookie) bbb=val
use_backend aaa if !has_bbb_cookie  
use_backend bbb if  has_bbb_cookie

the haproxy manual says: "The "hdr" criteria returns true if any of the headers matching the criteria match any of the strings."

BUT, as long, as there is a second cookie header in the request, like "aaa=val", haproxy redirects to backend aaa, which should not happen, since a "bbb=val" cookie is set... !has_bbb_cookie should return false..

Is it a bug, or my misunderstanding of something?

link|improve this question
it looks like if theres an "aaa=val" cookie before an "bbb=val" cookie, haproxy thinks, there would be no "bbb=val" cookie... – krzysiek Aug 18 '11 at 11:25
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.