修改Nginx请求日志格式

修改nginx.conf

log_format main '$http_x_forwarded_for $remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$request_time"';

需要在assess_log 配置后面加上main,启用main配置

暂无评论

发送评论 编辑评论


				
上一篇
下一篇