具體網址我在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