上传文件:Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

使用nginx代理后,上传文件报错:Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

原因:nginx默认允许上传1M文件

修改nginx.conf配置:在反向代理内容增加client_max_body_size 100M;

上传文件:Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)_第1张图片

你可能感兴趣的:(运维,error,and,question,nginx)