Linux : Nginx error 413 Request Entity Too Large

By | February 5, 2015

Having this error while uploading large files with Nginx?

413 Request Entity Too Large
or ;
[error] client intended to send too large body

1. Edit the main Nginx configuration file :

/etc/nginx/nginx.conf

2. Append the following and set the value to meet your needs (this example assume that the max upload file size is 64 Mb) :

client_max_body_size 64M;

3. Save and reload Nginx :

service nginx restart