在http段加上
log_format access '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent $request_body "$http_referer" "$http_user_agent" $http_x_forwarded_for';
在server段加上
access_log logs/post.access.log access;
不要后面的access不会输出
转载于:https://www.cnblogs.com/elesos/p/5924620.html
最后
以上就是神勇白开水最近收集整理的关于nginx查看post请求日志的全部内容,更多相关nginx查看post请求日志内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复