]> git.kaiwu.me - haproxy.git/commitdiff
DOC: config: explain per ACL line limitations
authorBjörn Jacke <bjacke@samba.org>
Tue, 6 Oct 2026 20:55:50 +0000 (22:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Oct 2026 09:08:20 +0000 (11:08 +0200)
Explain that per ACL line only a single acl matching statement is
allowed.

Should be backported to all supported branches.

Acked-by: Lukas Tribus <lukas@ltri.eu>
doc/configuration.txt

index 8aad178eac8ea610216b54d55d596f12c9a863f4..055ee281394050af086f792658f11a0032b7aff5 100644 (file)
@@ -21181,7 +21181,13 @@ Their evaluation only returns a match or a mismatch, which is comparable to
 booleans in many programming languages. Contrary to functions in programming
 languages, ACLs may be overloaded as many times as needed in order to define
 additional matching methods for the same name. In this case they will all be
-evaluated in their declaration order until one matches.
+evaluated in their declaration order until one matches. In other words,
+multiple declarations of the same ACL name are logically combined by OR.
+
+Each ACL declaration line must only contain a single ACL matching keyword,
+followed by one or multiple pattern values. It's not allowed to use multiple
+matching keywords and combine them by logical or/and operators in an ACL
+declaration line.
 
 The use of ACLs provides a flexible solution to perform content switching and
 generally to take decisions based on content extracted from the request, the