HAProxy community

Multiple condition group ordering

Hi, I would like to do something like this (logically):

http-request deny unless acl1 OR acl2 OR (acl3 AND acl4)

Would this statement do that?

http-request deny unless acl1 or acl2 or acl3 acl4

Thanks!

No, because it’s sequential. If you want that, you need to move it around:

http-request deny unless acl3 acl4 or acl1 or acl2
1 Like