已解决:nginx报错Request Entity Too Large

洼地云 tuoyidashi.png

nginx.jpg

错误

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;
}
赞(0)
未经允许禁止转载:优米格 » 已解决:nginx报错Request Entity Too Large

评论 抢沙发

合作&反馈&投稿

商务合作、问题反馈、投稿,欢迎联系

广告合作侵权联系

登录

找回密码

注册