文件上传出现 413 错误码
onekr-billy opened this issue · 1 comments
onekr-billy commented
ponycar commented
解决方法:
修改./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;