}

[SOLVED] Status code 413: Request Entity Too Large Error While with Nginx

Created:

Introduction

The status code 413 usually happens when someone tries to upload a file that is too big. You can solve this problem by changing the nginx configuration.

Solution

Open nginx configuration located at /etc/nginx/nginx.conf, search for the string client_max_body_size and then change the max body size:

client_max_body_size 256M; if(typeof __ez_fad_position != 'undefined'){__ez_fad_position('div-gpt-ad-tutorials_technology-medrectangle-3-0')}; Or just use the value 0 to disable max body size:

client_max_body_size 0;

If you don't have the client_max_body_size on the configuration, you can just add a new line with the new max boy size.

Now you can reload nginx with:

service nginx reload