nginx 日志打印post请求参数
时间:2018-11-28 13:01:30
收藏:0
阅读:644
在日志格式后面加上 $request_body 配置信息
log_format main ‘$remote_addr - $remote_user [$time_local] "$request" ‘
‘$status $body_bytes_sent "$http_referer" ‘
‘"$http_user_agent" "$http_x_forwarded_for" $request_body‘;
access_log logs/access.log main;
原文:https://www.cnblogs.com/wanjn/p/10031468.html
评论(0)