nginx/413请求实体太大 [英] nginx / 413 Request Entity Too Large

查看:308
本文介绍了nginx/413请求实体太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在服务器上上传文件时,出现此错误:

When I'm trying to upload a file on my server I get this error:

413请求实体太大

这当然意味着我的文件太大.所以我做了一个快速的谷歌搜索,并遇到了这个问题:

Which ofcourse means my file is too large. So i've done a quick google search and came accross this:

打开:

/etc/nginx/nginx.conf

# set client body size to 2M #
client_max_body_size 2M;

但是我的nginx.conf文件中没有该代码吗?这最近改变了吗?找不到任何东西

However I don't have that code in my nginx.conf file? Did this recently change? Can't find nothing about it

谢谢

推荐答案

client_max_body_size的默认值为1 MB. RTM

client_max_body_size default value is 1 MB. RTM

这篇关于nginx/413请求实体太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆