darren
darren

Reputation: 19399

413 request entity too large + The web server connection was closed | Error 64

I'm currently hosting a django project on Apache + nginx. When I try to upload a large file I get a 413 request entity too large error message.

413 request entity too large

I also have a django-cms project and when I tried to upload a file which is anything over 5meg I get an error code 64, The web server connection was closed.

code 64 the web server connection was closed

Thanks in advance,

Upvotes: 22

Views: 15046

Answers (1)

jujule
jujule

Reputation: 11521

Your error message tells it comes from nginx configuration.

You need to increase client_max_body_size on your nginx.conf server config. eg :

http {
    server {
        client_max_body_size 20M;
        listen       80;
        server_name  test.com;
    }
}

Upvotes: 52

Related Questions