蔷薇525 发表于 2018-11-10 14:37:47

【问题】Nginx日志中request_body为空

worker_processes2;  
daemon off;
  
#pid      logs/nginx.pid;
  
events {
  
    worker_connections1024;
  
}
  
http {
  
    include       mime.types;
  
    default_typeapplication/octet-stream;
  
    log_formatmain'$remote_addr$remote_user$http_user_name$time_iso8601$request'
  
                      '$status$body_bytes_sent$request_body$http_referer$http_user_agent'
  
                      '$http_x_forwarded_for$upstream_response_time$request_time';
  
    sendfile      on;
  
    keepalive_timeout65;
  
    client_max_body_size 100m;
  
    fastcgi_buffers 32 8k;
  
    client_body_buffer_size 1024k;
  
    server {
  
      listen       80;
  
      server_namelocalhost;
  
      charset utf-8;
  
      location = / {
  
            root html;
  
            indexindex.html index.htm;
  
            error_page 405 =200 $uri;
  
      }
  
      # redirect server error pages to the static page /50x.html
  
      error_page   500 502 503 504/50x.html;
  
      location = /50x.html {
  
            root   html;
  
      }
  
      error_page 405 =200 /index.html;
  
    }
  
    include conf.d/*.conf;
  
}


页: [1]
查看完整版本: 【问题】Nginx日志中request_body为空