4

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

user6527
  • 95
  • 1
  • 6

1 Answers1

9

client_max_body_size default value is 1 MB. RTM

Funk Forty Niner
  • 73,764
  • 15
  • 63
  • 131
Alexander Azarov
  • 12,235
  • 2
  • 45
  • 50