配置部分域名记录post请求数据:

nginx.conf

# 添加$request_body参数
log_format log_format_name_1 '$remote_addr - $remote_user [$time_local] "$request" '
      '$status $body_bytes_sent "$http_referer" '
       '"$http_user_agent" "$http_x_forwarded_for"'
       '"$request_body" $request_time $upstream_response_time';

./vhost/*.conf

# 注意一定要在后面带日志格式名称
access_log  /alidata/log/nginx/*.access.log log_format_name_1;