Nginx 413 Request Entity Too Large

Do you like this?

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


Content:

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 / {
            proxy_pass         http://127.0.0.1:8000/;
        }
    }

 
comments powered by Disqus