413 请求实体太大Web 服务器连接已关闭 |错误64

发布于 2024-10-17 05:11:59 字数 341 浏览 7 评论 0原文

我目前正在 Apache + nginx 上托管一个 django 项目。当我尝试上传大文件时,收到 413 请求实体太大错误消息。

413 请求实体太大

我也有一个 django-cms 项目,当我尝试上传超过 5meg 的文件时,我收到错误代码 64,Web 服务器连接已关闭。

代码 64 Web 服务器连接已关闭

提前致谢,

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,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

榆西 2024-10-24 05:11:59

您的错误消息表明它来自 nginx 配置。

您需要增加 nginx.conf 服务器配置上的 client_max_body_size。例如:

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

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;
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文