How to fix error 413 Request Entity Too Large

How to fix error 413 Request Entity Too Large

Error 413 (Request Entity Too Large) indicates a file processing problem that exceeds the limits permitted by the web server. Nginx web servers are co

How to view and Edit Image meta tag using linux command line
How to Install xVarnish (Cachewall) on WHM / cPanel
How to Enable Auto Login in Ubuntu

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.

Loading...
loading...

COMMENTS

WORDPRESS: 0
DISQUS: 0