Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx / 413 Request Entity Too Large

Tags:

nginx

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

413 Request Entity Too Large

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? Did this recently change? Can't find nothing about it

Thanks

like image 864
user6527 Avatar asked Jan 05 '23 05:01

user6527


1 Answers

client_max_body_size default value is 1 MB. RTM

like image 157
Alexander Azarov Avatar answered Jan 17 '23 16:01

Alexander Azarov