Nginx限制大小不生效 哪里出了问题? 小鸡搭建了 hacdias/webdav Rclone 上传400M 出错提示如下
413 Request Entity Too Large
重启过小鸡也不行 弄不清哪里出问题了
网站反代配置如下 server { listen 80; server_name 00.XX.top; client_max_body_size 500m; location / { proxy_pass http://127.0.0.1:6666; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; } }
主配置如下 http { include mime.types; default_type application/octet-stream;
server_names_hash_bucket_size 128; client_header_buffer_size 32k; large_client_header_buffers 4 32k; client_max_body_size 500m; |