[Nginx] 413 ERROR: Request Entity Too Large
413 ERROR: Request Entity too large
💭 What is 413 Error and how to fix it?
- 🧐 413 Error occurs when the request file sent by client is larger than limits defined by server
- 413 Error can be fixed by increasing the defined limits in the Nginx configuration file
1. Find Nginx server config file
First of all, find the Nginx config file and open it. It’s located in /etc/nginx/nginx.conf 📋 < Ubuntu Terminal >
sudo vim /etc/nginx/nginx.conf
2. Change/Add ‘client_max_body_size’ value
Change/add the value of a variable ‘client_max_body_size’ as below: 📋 < Ubuntu Terminal >
client_max_body_size 100M;
3. Restart Nginx
📋 < Ubuntu Terminal >
sudo service nginx restart
Reference:
Any advice and suggestions are welcome and appreciated!