nginx - 413 Request Entity Too Large

Want to support HowtoForge? Become a subscriber!
Submitted by falko (Contact Author) (Forums) on Mon, 2011-08-08 10:12. :: Errors

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

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Fri, 2014-06-06 00:04.

should be:

 client_max_body_size 2M;