具体网址我在HAProxy的配置有一个简单的条件(我想这对于前端和后端):添加标题,以响应与HAProxy的
acl no_index_url path_end .pdf .doc .xls .docx .xlsx
rspadd X-Robots-Tag:\ noindex if no_index_url
它应该增加无漫游器标题到不应该编入索引的内容。
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
既可前端和后端使用:然而,它解析配置的时候给我这个WARNING
。 path_end
用于前端内的示例中。为什么我得到这个错误,这是什么意思?
你救了我的一天:) – Yajo