自动把网站被搜索引擎抓取的日志单独存放一个文件方便查看。
location ~ .* { if ($http_user_agent ~* "spider" ) { access_log /www/wwwlogs/www.1.log; } }
渝ICP备15001303号-1