简体   繁体   English

nginx / 413请求实体太大

[英]nginx / 413 Request Entity Too Large

When I'm trying to upload a file on my server I get this error: 当我尝试在服务器上上传文件时,出现以下错误:

413 Request Entity Too Large 413请求实体太大

Which ofcourse means my file is too large. 当然,这意味着我的文件太大。 So i've done a quick google search and came accross this: 所以我做了一个快速的谷歌搜索,并遇到了这个问题:

open: 打开:

/etc/nginx/nginx.conf

Edit: 编辑:

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

However I don't have that code in my nginx.conf file? 但是我的nginx.conf文件中没有该代码吗? Did this recently change? 这最近改变了吗? Can't find nothing about it 找不到任何东西

Thanks 谢谢

client_max_body_size default value is 1 MB. client_max_body_size默认值为1 MB。 RTM RTM

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM