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