Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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,

like image 802
darren Avatar asked Feb 15 '11 07:02

darren


People also ask

How do I fix discord request entity is too large?

Clear your Constant Contact cookies to fix the Request Entity Too Large error. Occasionally when navigating your account, you might see an error message that reads "Request Entity Too Large." When this happens, it means that your Constant Contact cookies have built up and need to be cleared.

What is 413 Request Entity Too Large?

What does “413 Request Entity Too Large” mean? A 413 HTTP error code occurs when the size of a client's request exceeds the server's file size limit. This typically happens when a client attempts to upload a large file to a web server, and the server responds with a 413 error to alert the client.

What is a 413 server error?

The HTTP 413 Payload Too Large response status code indicates that the request entity is larger than limits defined by server; the server might close the connection or return a Retry-After header field.


1 Answers

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;     } } 
like image 187
jujule Avatar answered Oct 10 '22 06:10

jujule