nginx 日志记录post数据

作者: cayman 分类: 服务器技术 发布时间: 2019-04-27 08:29

在nginx http代码块 添加如下代码

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

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注