HAProxy Enterprise Documentation 1.8r2
Inline ACLs
Although you can define an ACL on its own by using the acl
directive, in which case it can be referenced on another line by name:
frontend www
bind :80
acl api_url path_beg /api/
use_backend api_server if api_url
You can also declare the ACL inline by surrounding the expression with curly braces:
frontend www
bind :80
use_backend api_server if { path_beg /api/ }
Next up
Predefined ACLs