小编sim*_*mon的帖子

haproxy acl 用于 url 和 url 参数

我想在 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)

如何将url_param与A​​CL 中的路径结合使用?

haproxy

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

haproxy ×1