简体   繁体   English

HTTP 413请求实体太大

[英]HTTP 413 Request Entity too Large

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). 我目前无法在Drupal 7(7.15)中的自定义文件字段上使用Drupal FileField源(远程url选项)发布很大的文件。 The file is uploading to the tmp directory successfully but failing when it attempts to post. 该文件已成功上传到tmp目录,但尝试发布时失败。 The file size is 870Mb (A 510mb file has posted successfully.). 文件大小为870Mb (一个510mb文件已成功发布。)。

I receive the following error in access_log : 我在access_log中收到以下错误:

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

I assume I am interpreting this error correctly as a 413 Request Entity Too Large 我假设我将这个错误正确解释为413请求实体太大

I have configured php.ini with the following settings: 我已经使用以下设置配置了php.ini:

post_max_size = 1800M
max_execution_time = 3600 (i know that's overkill)
memory_limit = 1750M
max_input_time = -1 (unlimited)

In addition I have attempted to set the LimitRequestBody value to 0 in php.conf using the following: 另外,我尝试使用以下命令将php.conf中的LimitRequestBody值设置为0:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 0
</Files>

This didn't appear to help. 这似乎没有帮助。

The server is running Centos 6.3, Apache/2.2.15, PHP 5.3.3 with 2GB Ram and 40GB disk. 服务器正在运行Centos 6.3,Apache / 2.2.15,PHP 5.3.3、2GB Ram和40GB磁盘。

I can't believe it should be struggling with that size file (~800mb) and those server settings? 我不敢相信该大小文件(〜800mb)和那些服务器设置会很麻烦?

Do you have access to the http.conf if so you could try this. 如果可以,您是否可以访问http.conf。

This has been the issue for me sometimes to upload with over 500mb. 对于我来说,有时候上传超过500mb的视频已经成为问题。 Although I strongly suggest you should try and get it working with 尽管我强烈建议您尝试并使其与
the setting SecRequestBodyAccess "On". 设置SecRequestBodyAccess为“开”。

I had to edit the Apache config file (http.conf) and change 我必须编辑Apache配置文件(http.conf)并进行更改

SecRequestBodyAccess On

to

SecRequestBodyAccess Off

EDIT: 编辑:

IF i remember correctly you could try the following. 如果我没记错的话,可以尝试以下方法。

SET

SecRequestBodyNoFilesLimit , the maximum value is 1073741824 (1Gb)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 http - 请求实体太大 - 错误413 - http - request entity too large - error 413 如何修复413 HTTP Request实体太大 - How to fix 413 HTTP Request entity too large 修复 413 请求实体太大错误: - Fixing 413 Request Entity Too Large Errors : 如何正确发送早期的 http 错误 413(请求实体太大)? - How do I properly send an early http error 413 (Request Entity Too Large)? 疑难解答“请求实体太大”(HTTP 413)错误消息返回给浏览器 - Troubleshooting “Request Entity Too Large” (HTTP 413) error message returned to browser 远程服务器返回异常:(413) Request Entity Too Large - The remote server returned exception: (413) Request Entity Too Large Python瓶模块导致“错误:413请求实体太大” - Python bottle module causes “Error: 413 Request Entity Too Large” Soundcloud:上传时增加了413个错误(请求实体太大) - Soundcloud: increased 413 failures (Request Entity Too Large) on upload 哪些设置会影响错误413-请求实体太大 - Which settings affect error 413 - Request entity too large WCF-Service-call 错误:远程服务器返回意外响应:(413)请求实体太大 - WCF-Service-call ERROR: The remote server returned an unexpected response: (413) Request Entity Too Large
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM