Nginx Error: 413 request entity too large

We can resolve this error by increasing the value of maximum body size of a client request that the server allows. The default value is 1M only.

Step1: Login to the server as root

Step2: Open the nginx configuration

#vi /etc/nginx/nginx.conf

Step3: Update the following variable and save.

client_max_body_size 8M;

Step4: Reload the configuration.

#nginx -s reload

That's all...

Leave a Reply

Your email address will not be published. Required fields are marked *