欢迎访问我的独立博客

nginx查看post请求日志

在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不会输出
posted @ 2016-09-30 18:11  github.com/starRTC  阅读(1773)  评论(0编辑  收藏  举报