Fight with Error 413 Request Entity Too Large

Error in Nginx Web server when downloading files greater than 1 MB. One of the reasons is the default setting nginx, client_max_body_size parameter to be exact, which defaults to 1 m

Directive client_max_body_size specifies the maximum allowable size of the client request body specified in the “Content-Length” header of the request. If the size is greater than the specified, then an error is returned to the client “Request Entity Too Large” (413). It should be borne in mind that browsers do not know how to correctly display this error.


In file nginx.conf, in the http section of the Add/Edit:
client_max_body_size 100 m;