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

Solution

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

Share this page:

Suggested articles

1 Comment(s)

Add comment

Comments

From: Anonymous

should be:

 client_max_body_size 2M;