]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] allow TCP inspection rules to make use of HTTP ACLs
authorWilly Tarreau <w@1wt.eu>
Sun, 12 Jul 2009 08:10:05 +0000 (10:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 12 Jul 2009 08:10:05 +0000 (10:10 +0200)
commit51d5dad90a7de3f57d61184264d4824ecf8bbe3f
tree0ed3462fd664b2420cb8982fa2db383348c96803
parentcd7afc0a13f21efcfe261b04d4327d048d5d3e50
[MINOR] allow TCP inspection rules to make use of HTTP ACLs

Since we can call the HTTP parser from TCP inspection rules, it makes
sense to be able to use the HTTP ACLs with it. That way, we can decide
from a TCP frontend to take a switching decision based on full layer7
decoding. This might be useful to perform layer7 content switching from
a layer4 frontend in fact. For instance, we might want to be able to
detect http/https on a frontend, but still switch to backend X or Y
depending on the Host header. Note that it is mandatory to wait for
an HTTP request otherwise the ACLs will randomly match.
src/proto_tcp.c