Apache 对 POST 请求大小的限制 [英] Apache's limit to POST request size

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

问题描述

apache 中的 POST 请求大小有限制吗?这个限制的默认值是多少,有什么办法可以增加它?如果重要的话,Rails 应用程序会使用passenger 在这个服务器上启动.

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 指令的完整说明.

Take a look at the full description of Apache's LimitRequestBody directive.

除此之外,Rails 本身可能会施加一个限制(虽然我从未用 Ruby 编写过 b/c,但无法判断).

Besides that Rails may impose a limit itself (cant't tell though b/c I've never programmed in Ruby).

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

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