我得到了这样的信息,
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中,但没有帮助
如何克服这一点?
谢谢
发布于 2012-04-14 04:54:37
在你提出了PHP的memory_limit,post_max_size和upload_max_filesize之后,我想向你推荐一些与这个主题相关的文章,也许其中一篇能解决这个问题。
我在服务器故障上找到了这篇文章:
https://serverfault.com/questions/79741/php-apache-post-limit/79745#79745
Content-Length,并-引用-“确保你直接连接到Apache,而不是通过代理或反向代理。一些反向代理设置了最大请求大小的上限,作为一种安全措施。所以,你可能想要检查一下你的Apache日志,以确保没有其他事情发生。”以下内容仅适用于在Apache中启用了 模块的。(否则此设置可能会导致服务器崩溃。)
引用这篇文章:
“我使用的是Apache SSL客户端证书,它有128K的限制,如果必须进行重新协商,更大的POST将失败。
提供了一些线索--您必须将以下内容设置为您的SSL服务器的默认值,而不仅仅是目录。
SSLVerifyClient要求
否则它会强制进行某种重新协商,并以413错误失败。“
A guy says here that the appropriate setting of this directive solved his problem..
我希望这些设置之一能解决这个问题!
发布于 2012-06-15 16:44:42
我唯一能做的就是调优SSL缓冲区的大小。您可以通过以下方式进行设置:
<Directory /my/blah/blah>
...
# Set this to something big...
SSLRenegBufferSize 10486000
...
</Directory>然后,只需重新启动...and即可使更改生效。(位于:http://forum.joomla.org/viewtopic.php?p=2085574)
您还可以使用"Location /“将该设置简单地应用于整个VirtualHost:
<VirtualHost *:443>
# ...
<Location />
SSLRenegBufferSize 101048600
</Location>
# ...
</VirtualHost>发布于 2013-10-18 18:42:48
我的服务器是Apache。它是mod_security模块,它阻止发布大约171KB的大数据。我在mod_security.conf中完成了以下配置
SecRequestBodyNoFilesLimit 10486000
SecRequestBodyInMemoryLimit 10486000https://stackoverflow.com/questions/8896644
复制相似问题