如何在if条件里配置access_log文件_问答_ThinkSAAS
2015年6月26日 - 可以这么配置,应该还有更好的写法。 location /log { if ($http_user_agent ~ MSIE ) { access_log /var/log/msie.log; } if ($http_user_agent ~ Ope...
nginx日志配置指令详解_nginx_脚本之家
2014年7月23日 - 配置段: http, server, location, if in location...不记录日志:access_log off; 使用默认combined格式记录...是否在error_log中记录不存在的错误。默...