我想从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.conf
和default-ssl.conf
文件中,我设置了这些规则
SetEnvIFNoCase User-Agent "^Googlebot" dontlog
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog
为什么Apache会继续记录Googlebot活动?