2018-10-06 16:28:16 版本 : nginx 出现413 Request Entity Too Large问题的解决方法
作者: 系统管理员 于 2018年10月06日 发布在分类 / 配置安装 / nginx 下,并于 2018年10月06日 编辑
 历史版本

备注 修改日期 修改人
格式调整 2018-10-06 16:28:16[当前版本] 系统管理员
CREAT 2018-10-06 16:26:29 系统管理员

nginx默认上传文件的大小是1M,可nginx的设置中修改。

解决方法如下:
1.打开nginx配置文件 nginx.conf, 路径一般是:/etc/nginx/nginx.conf
2.在http{}段中加入 client_max_body_size 20m; 20m为允许最大上传的大小。
3.保存后重启nginx。


service nginx restart


历史版本-目录  [回到顶端]
    wcp知识库系统-京ICP备15024440号-1 -V 5.1.9 -wcp