【发布时间】:2015-04-19 14:36:13
【问题描述】:
我的 HAproxy 配置中有一个简单的条件(我为 frontend 和 backend 尝试了这个):
acl no_index_url path_end .pdf .doc .xls .docx .xlsx
rspadd X-Robots-Tag:\ noindex if no_index_url
它应该将 no-robots 标头添加到不应被索引的内容中。但是在解析配置时它给了我这个WARNING:
acl 'no_index_url' will never match because it only involves keywords
that are incompatible with 'backend http-response header rule'
和
acl 'no_index_url' will never match because it only involves keywords
that are incompatible with 'frontend http-response header rule'
根据documentation,rspadd 可以用于前端和后端。 path_end 用在 frontend 中的示例中。为什么我会收到此错误,这是什么意思?
【问题讨论】: