如果nginx的server里没配置access.log,nginx会默认将server的访问日志记录到access.log,
关闭方法:
在nginx.conf配置文件中,
在全局配置中添加 error_log off;
在http块中添加:access_log off;
然后在server中单独配置access.log
nginx关闭全局access.log,error.log
原文:http://www.cnblogs.com/xone/p/6373374.html