nginx error 日志一直出现a client request body is buffered to a temporary file

2022/05/12 10:19:57 [warn] 3717013#3717013: *10666217 a client request body is buffered to a temporary file /var/lib/nginx/body/0001192278, client: 192.168.10.184, server: XXXXX, request: "POST /intake/v2/events HTTP/1.1", host: "XXXXX"
2022/05/12 10:20:00 [warn] 3717013#3717013: *10672966 a client request body is buffered to a temporary file /var/lib/nginx/body/0001192279, client: 192.168.10.183, server: XXXXX, request: "POST /intake/v2/events HTTP/1.1", host: "XXXXX"
2022/05/12 10:20:00 [warn] 3717013#3717013: *10676978 a client request body is buffered to a temporary file /var/lib/nginx/body/0001192280, client: 192.168.10.183, server: XXXXX, request: "POST /intake/v2/events HTTP/1.1", host: "XXXXX"
2022/05/12 10:20:01 [warn] 3717013#3717013: *10676528 a client request body is buffered to a temporary file /var/lib/nginx/body/0001192281, client: 192.168.10.184, server: XXXXX, request: "POST /intake/v2/events HTTP/1.1", host: "XXXXX"



 代表什么意思?需要做哪些优化?

邀请回答
提问于 2022-05-12 15:31
22 次浏览
共1个回答

发表评论
  • wajika
    2022-05-12 15:42

    user nginx;
    worker_processes auto;
    error_log /var/log/nginx/error.log warn;
    pid /var/run/nginx.pid;

    worker_rlimit_nofile 900000;

    events {
    use epoll;
    multi_accept on;
    worker_connections 900000;
    }

    http {

    include /etc/nginx/conf.d/*.conf;

    server {
    client_body_buffer_size 10M;
    client_max_body_size 10M;
    listen 80;
    server_name XXXX;
    charset utf-8;
    access_log main;
    location / {
    add_header Access-Control-Allow-Credentials 'true';
    add_header Access-Control-Allow-Methods 'GET,PUT,POST,OPTIONS,DELETE';
    add_header Access-Control-Allow-Headers '*';
    proxy_pass http://192.168.10.25:8200;
    proxy_set_header Host $http_host;
    #proxy_set_header Host $host;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    location /static {
    access_log off;
    expires 30d;
    alias /app/static;
    }
    }

    server {
    listen 443 ssl;
    server_name XXXX;
    client_body_buffer_size 10M;
    client_max_body_size 10M;
    ssl_certificate /etc/nginx/cert/xxxx.pem;
    ssl_certificate_key /etc/nginx/cert/xxxx.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    location / {
    add_header Access-Control-Allow-Methods 'GET,POST,OPTIONS';
    add_header Access-Control-Allow-Headers '*';
    add_header Access-Control-Allow-Credentials 'true';
    proxy_pass http://192.168.10.25:8200;
    proxy_set_header Host $http_host;
    #proxy_set_header Host $host;
    proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    proxy_set_header X-Forwarded-Host $server_name;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    location /static {
    access_log off;
    expires 30d;
    alias /app/static;
    }
    }
    }

    0
    回复
    举报
提问者

wajika

暂无个人介绍

  • 0

    文章

  • 0

    粉丝

  • 0

    被赞

wajika
按Enter键发送
您已邀请位用户
Copyright 公安部网络安全保卫局 All Rights Reserved
京公网安备 11010502047880号    京ICP备05070602号