HTTP 413 请求实体太大 [英] HTTP 413 Request Entity too Large

查看:51
本文介绍了HTTP 413 请求实体太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前无法在 drupal 7 (7.15) 的自定义文件字段上使用 Drupal FileField Source(远程 url 选项)发布非常大的文件.该文件已成功上传到 tmp 目录,但在尝试发布时失败.文件大小为 870Mb(510mb 文件已成功发布.).

I am currently unable to post very large files using the Drupal FileField Source (remote url option) on a custom file field in drupal 7 (7.15). The file is uploading to the tmp directory successfully but failing when it attempts to post. The file size is 870Mb (A 510mb file has posted successfully.).

我在 access_log 中收到以下错误:

I receive the following error in access_log:

83.000.15.200 - - [02/Oct/2012:12:30:14 +0000] "POST/file/ajax/field_video_source/und/0/form-i6gTPc5LlZsQxKpgO43eaLGjh7dgWQD5Rj10000" HTTP代码>

83.000.15.200 - - [02/Oct/2012:12:30:14 +0000] "POST /file/ajax/field_video_source/und/0/form-i6gTPc5LlZsQxKpgO43eaLGjh7dgWqHjQ6TPZD9SRmY HTTP/1.1" 500 413

我假设我将此错误正确解释为 413 请求实体太大

I assume I am interpreting this error correctly as a 413 Request Entity Too Large

我已经使用以下设置配置了 php.ini:

I have configured php.ini with the following settings:

post_max_size = 1800M
max_execution_time = 3600(我知道这太过分了)
memory_limit = 1750M
max_input_time = -1(无限制)

此外,我尝试使用以下方法在 php.conf 中将 LimitRequestBody 值设置为 0:

In addition I have attempted to set the LimitRequestBody value to 0 in php.conf using the following:

<文件 *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 0

这似乎没有帮助.

服务器运行 Centos 6.3、Apache/2.2.15、PHP 5.3.3,具有 2GB 内存和 40GB 磁盘.

The server is running Centos 6.3, Apache/2.2.15, PHP 5.3.3 with 2GB Ram and 40GB disk.

我不敢相信它应该为那个大小的文件(~800mb)和那些服务器设置而苦苦挣扎?

I can't believe it should be struggling with that size file (~800mb) and those server settings?

推荐答案

如果可以,您可以访问 http.conf 吗?

Do you have access to the http.conf if so you could try this.

有时上传超过 500 mb 的文件一直是我的问题.尽管我强烈建议您尝试使用它
设置 SecRequestBodyAccess "On".

This has been the issue for me sometimes to upload with over 500mb. Although I strongly suggest you should try and get it working with
the setting SecRequestBodyAccess "On".

我必须编辑 Apache 配置文件 (http.conf) 并进行更改

I had to edit the Apache config file (http.conf) and change

SecRequestBodyAccess On

SecRequestBodyAccess Off

如果我没记错的话,您可以尝试以下操作.

IF i remember correctly you could try the following.

设置

SecRequestBodyNoFilesLimit , the maximum value is 1073741824 (1Gb)

这篇关于HTTP 413 请求实体太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆