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

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

问题描述

我目前无法张贴在Drupal 7(7.15)上的自定义文件字段使用Drupal的来源的FileField(远程URL选项)非常大的文件。该文件上传到tmp目录成功,但是当它试图上传失败。文件大小为 870MB (A 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

83.000.15.200 - - [02 /月/ 2012:12:30:14 +0000]POST /文件/ AJAX / field_video_source / UND / 0 /格式i6gTPc5LlZsQxKpgO43eaLGjh7dgWqHjQ6TPZD9SRmY HTTP / 1.1500 413

我想我是间preting此错误正确为 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 结果
0 LimitRequestBody 结果
< /文件>

这并未以帮助。

服务器正在运行的Centos 6.3,阿帕奇/ 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.

这一直是问题,我有时会超过500MB上传。虽然我强烈建议你应该尝试并获得它的工作搜索
设置SecRequestBodyAccess开。

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.

SET

SecRequestBodyNoFilesLimit , the maximum value is 1073741824 (1Gb)

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

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