1. nginx日志格式的配置信息默认在nginx.conf中, 如
log_format wwwlogs
'$remote_addr - $remote_user[$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for';
后面单引号中的变量,就是日志文件的格式,分别为 :客户ip , 用户名,请求的url,用户请求状态,发送给客户端的字节数,来源,浏览器类型,访问ip
2.日志文件路径配置
一般为: access_log logs/access.log combined