Welcome to my website, have a nice day!
Dream it, Do it, Make it!

已解决:nginx报错Request Entity Too Large

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)
未经允许禁止转载:Ddmit » 已解决:nginx报错Request Entity Too Large

评论 抢沙发

登录

找回密码

注册