nginx - 413 Request Entity Too Large

On this page

  1. Solution

You see the following error in your browser when you try to upload a file through http:

413 Request entity Too Large


Open /etc/nginx/nginx.conf...

nano /etc/nginx/nginx.conf

... and add client_max_body_size with a large enough value, e.g.:

client_max_body_size 2M;

Restart nginx afterwards:

service nginx restart

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

1 Comment(s)

Add comment


By: Anonymous at: 2014-06-05 23:04:50

should be:

 client_max_body_size 2M;