Nginx 413 Request Entity Too Large

Do you like this?

This post shows you how to fix the error 413 Request Entity Too Large in Nginx


Depending on your shared hosting, the location of the file nginx.conf can be different.

vim nginx.conf
Add this line: client_max_body_size 20M; as below:
    server {
        client_max_body_size 20M; # set client body size to 20M #
        listen       80;
        server_name  localhost;

        # Main location
        location / {

comments powered by Disqus