server_name localhost; location / { proxy_pass http://localhost:8008; proxy_http_version 1.1; proxy_set_header Upgrade$http_upgrade; proxy_set_header Connection"upgrade"; proxy_set_header Host$host:84; proxy_cache_bypass$http_upgrade; proxy_set_header X-Forwarded-For$proxy_add_x_forwarded_f...
使用Nginx反向代理时由于client_max_body_size配置较小时会报错413 Request Entity Too Large: 413 Request Entity Too Large 此时修改Nginx的配置文件即可: Nginx配置参数client_max_body_size
nginx反向代理上传大文件出现413 request Entity too Large 解决方法: client_max_body_size 500m; # 限制请求体的大小,若超过所设定的大小,返回413错误,默认1m (兆) client_body_timeout 5m; # 读取请求实体的超时时间,若超过所设定的大小,返回413错误,这里设置5分钟 proxy_connect_timeout 75s; # http请求...