Nginx Error: 413 Request Entity Too Large
Posted: August 14, 2009 | By: TJ | In Technology | No comments yet
While working in phpMyAdmin, I found that making a very simple table change was causing the following error:
413 Request Entity Too Large
The problem was that the client_max_body_size was not set properly in the nginx.conf. The directive is part of the Nginx core HTTP module and is set to 1MB by default. I set the value to 4MB and restarting fixed the issue. Essentially, the client_max_body_size is the maximum accepted body size of client request, indicated by the line “Content-Length” in the header of request. If size exceeds this value, the client gets sent the error “Request Entity Too Large” (413). If you expect to receive files uploaded to your server through the POST request method you’ll need to increase this value.





