开发者

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 + The web server connection was closed | Error 64

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

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

Thanks in advance,


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;
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜