错误
nginx报错:
Request Entity Too Large
原因
nginx客户端请求正文的最大允许大小默认为1m,参考这里:http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size;
解决
修改配置文件:
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip on;
client_max_body_size 2000m;
include D:/Programs/nginx-1.14.2/conf/conf.d/*.conf;
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容