From 92499e20034485c5e2d29cb85940e309573d976e Mon Sep 17 00:00:00 2001
From: Eric Covener
Date: Wed, 1 Jun 2022 12:30:46 +0000
Subject: [PATCH] use a liberal default limit for LimitRequestBody of 1GB
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901497 13f79535-47bb-0310-9956-ffa450edef68
---
docs/manual/mod/core.xml | 14 +++++---------
docs/manual/mod/mod_proxy.xml | 3 ---
modules/http/http_filters.c | 6 ++++++
modules/proxy/proxy_util.c | 14 --------------
server/core.c | 2 +-
5 files changed, 12 insertions(+), 27 deletions(-)
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index 24f40685b88..b6c146d21cd 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -2855,17 +2855,17 @@ LimitInternalRecursion 5
Restricts the total size of the HTTP request body sent
from the client
LimitRequestBody bytes
-LimitRequestBody 0
+LimitRequestBody 1073741824
server configvirtual host
directory.htaccess
All
+In Apache HTTP Server 2.4.53 and earlier, the default value
+was 0 (unlimited)
- This directive specifies the number of bytes from 0
- (meaning unlimited) to 2147483647 (2GB) that are allowed in a
- request body. See the note below for the limited applicability
- to proxy requests.
+ This directive specifies the number of bytes
+ that are allowed in a request body. A value of 0 means unlimited.
The LimitRequestBody directive allows
the user to set a limit on the allowed size of an HTTP request
@@ -2893,10 +2893,6 @@ from the client
LimitRequestBody 102400
- For a full description of how this directive is interpreted by
- proxy requests, see the mod_proxy documentation.
-
-
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index eecbfbe6df9..a440f99ccc9 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -445,9 +445,6 @@ ProxyPass "/apps" "http://127"
Content-Length header, but the server is configured to filter incoming
request bodies.
- LimitRequestBody only applies to
- request bodies that the server will spool to disk
-