VeryNginx
VeryNginx copied to clipboard
文件上传出现 413 错误码
这个跳过nginx直接访问后端可以,应该是nginx限制了 request body 的大小,怎么修改
解决方法: 修改./verynginx/openresty/nginx/conf/nginx.conf
http { include mime.types; default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
修改如下两项,参考nginx。
client_body_buffer_size 1024000k;
client_max_body_size 1024m;