Error 413 (Request Entity Too Large) indicates a file processing problem that exceeds the limits permitted by the web server. Nginx web servers are configured by default to limit large file sizes to keep server stable. Nginx can be set to allow the maximum size of the client request body by using the client_max_body_size
directive. If the request size exceeds the configured value, error 413 (Request Entity Too Large) will appear.
Nginx Configuration
To fix the problem 413 Request Entity Too Large at Nginx web server, can be done by setting the client_max_body_size
value in the /etc/nginx/nginx.conf
file. Edit this file using Vim or Nano:
vim /etc/nginx/nginx.conf
Then, add this line between html {
and }
:
client_max_body_size 8M;
save file and restart nginx:
service nginx restart
If the problem still appears, you can set the client_max_body_size
value to a larger value.
Sumber: https://linux.tutorials.id/en/how-to-fix-error-413-request-entity-too-large/