请求的实体太大 [英] Request Entity Too Large

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

问题描述

我收到此邮件

Request Entity Too Large
The requested resource
/index.php
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. 

我设置

php_value post_max_size 50M
php_value upload_max_filesize 50M

.htaccess 但没有帮助

如何克服这个问题?

感谢

推荐答案

a href =http://www.php.net/manual/en/ini.core.php#ini.memory-limit> memory_limit post_max_size upload_max_filesize ,我想推荐你一些与这个主题相关的文章,也许其中一个解决了这个问题。

After you are over the raising of PHP's memory_limit, post_max_size and upload_max_filesize, I would like to recommend you some articles related to the topic, maybe one of them solves the problem.

我发现这篇文章在服务器故障:

http://serverfault.com/questions/79741/php -apache-post-limit / 79745#79745

I found this post on Server Fault:
http://serverfault.com/questions/79741/php-apache-post-limit/79745#79745


  • sybreon - 检查 Content-Length 和 - citing - 确保您直接连接到Apache,而不是通过代理或反向代理。 - 代理对请求的最大大小设置上限作为一种安全措施。因此,您可能需要检查以及您的Apache日志,以确保没有其他事情发生。

  • sybreon suggests to double-check the Content-Length, and - citing - "ensure that you are directly connecting to Apache and not through either a proxy or a reverse-proxy. Some reverse-proxies place a cap on the maximum size of a request as a sort of security measure. So, you may want to check that as well as your Apache logs to ensure that nothing else is going on."

sybreon也发布了链接: Apache 413错误问题

以下仅适用于如果您已 mod_ssl 模块打开 Apache。(否则此设置可能导致服务器崩溃。)

引用文章:

我使用Apache SSL客户端证书,限制为128K,如果必须重新协商,则较大的POST将失败。

此Bugzilla发布具有线索 - 您必须为SSL服务器而不只是目录设置以下为DEFAULTS。

sybreon also posted this link: Apache 413 error problems.
The following is only applicable if you have mod_ssl module turned on in Apache. (Otherwise this setting can cause a server crash.)
Citing the article:
"I was using Apache SSL client certificates, which have a limit of 128K, and if re-negotiation has to happen, a larger POST will fail.
This Bugzilla posting had the clues - You have to set the following as DEFAULTS for your SSL server, not just the directory.

SSLVerifyClient require

否则会强制某种类型的重新协商,有413错误。

Otherwise it forces a renegotiation of some sort, and fails with a 413 error."

上一篇文章还提到了 LimitRequestBody 指令。

一个人说这里的适当设置解决了他的问题。

The previous article also mentioned the LimitRequestBody directive.
A guy says here that the appropriate setting of this directive solved his problem..

我希望这些设置中的一个解决了这个问题!

I hope one of these settings solves this problem!

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

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