0

我想从access.log

66.249.78.134 - - [01/Apr/2016:10:56:29 +0000] "POST /get_subtitle HTTP/1.1" 200 416 "https://example.com/?artist=name&track=song" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

所以,在我的000-default.confdefault-ssl.conf文件中,我设置了这些规则

SetEnvIFNoCase User-Agent "^Googlebot" dontlog
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog

为什么 Apache 继续记录 Googlebot 活动?

4

0 回答 0