我想在 haproxy 1.6 中创建一个 ACL,仅当特定 url 和 url 参数同时出现时才允许它们。例如:
example.com/url/of/page3?foo=bar
Run Code Online (Sandbox Code Playgroud)
我已经在我的 haproxy 配置的前端部分执行此操作:
acl whitelist path /url/of/page1
acl whitelist path /url/of/page2
acl whitelist path_beg /url/of/page3
block unless whitelist
Run Code Online (Sandbox Code Playgroud)
haproxy ×1