Apache的限制POST请求的大小 [英] Apache's limit to POST request size
问题描述
有没有在Apache中的 POST
请求大小的任何限制吗?什么是该限制的默认值,有没有什么办法来提高呢?如果它的事项,的Rails
应用程序在该服务器上使用的乘客开始。
Is there any limit of the POST
request size in apache? What is the default value of this limit and is there any way to increase it? If it matters, Rails
application is started on this server using passenger.
推荐答案
在Apache的限制是通过 LimitRequestBody
指令,默认设置 0
:
The limit in Apache is set via the LimitRequestBody
directive and defaults to 0
:
该指令指定的字节从0(意味着无限制)到2147483647(2GB)的数量被允许的请求主体。
This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.
看看Apache的 LimitRequestBody指令。
除此之外的Rails
可加以限制本身(cant't告诉虽然B / C我从来没有用Ruby编程)。
Besides that Rails
may impose a limit itself (cant't tell though b/c I've never programmed in Ruby).
这篇关于Apache的限制POST请求的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!