Error: nginx - 413 Request Entity Too Large

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...

vi /etc/nginx/nginx.conf

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

client_max_body_size 2MB;

Restart nginx afterwards:

/etc/init.d/nginx restart

Share this page:

1 Comment(s)

Add comment


From: Anonymous

should be:

 client_max_body_size 2M;