Solved issue 413 Request Entity Too Large in Nginx Ubuntu Server

When you try to upload a file using Nginx server you get an error 413 Request Entity Too Large.

This is due to Nginx server configuration is not set for your uploaded file size. To solve this issue use the following steps.

1. Connect your server using SSH terminal.

2. Open Nginx configuration:

sudo nano /etc/nginx/nginx.conf

3. Add allowed file size in http section.

http {
    client_max_body_size 100M;

4. Save using ctrl + o.

5. Exit using ctrl + x.

6. Restart Server:

sudo service nginx restart