From: Rich Bowen Date: Sat, 2 May 2026 19:54:14 +0000 (+0000) Subject: Bug 69891: Warn that inside can silently override ... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf137ca132ade17f9995512da424341713c2c05c;p=thirdparty%2Fapache%2Fhttpd.git Bug 69891: Warn that inside can silently override auth git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933720 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/howto/access.xml b/docs/manual/howto/access.xml index e8a59f2f43..5861e124d9 100644 --- a/docs/manual/howto/access.xml +++ b/docs/manual/howto/access.xml @@ -202,6 +202,14 @@ RewriteRule "^/fridge" "-" [F]

See also the Authentication and Authorization howto.

+ +

See the configuration sections + merging documentation for a warning about how + Limit inside + Location + can silently override + Directory + access restrictions.

diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 9088e5cfe6..c39f6625d9 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -2786,7 +2786,14 @@ methods used in preference to a Limit section when restricting access, since a LimitExcept section provides protection - against arbitrary methods. + against arbitrary methods. See also the + configuration sections + merging documentation for a warning about how + Limit inside + Location + can silently override + Directory + restrictions.

The Limit and LimitExcept diff --git a/docs/manual/sections.xml b/docs/manual/sections.xml index e2da71e08f..e2974aa3a0 100644 --- a/docs/manual/sections.xml +++ b/docs/manual/sections.xml @@ -542,6 +542,21 @@ are interpreted, it is important to understand how this works.

used in .htaccess, the enclosed directives in a parent directory will be merged after non-enclosed directives in a subdirectory. +
  • Caution: <Limit> inside + <Location> can silently grant access +

    Using Limit + inside a Location + section to restrict authorization to specific HTTP methods can have + unexpected results. For methods not listed in the + Limit, the + enclosing Location + section is treated as having no authorization requirements — which + effectively grants access and overrides any + Directory + restrictions that would otherwise apply. Use + LimitExcept + instead, or apply authorization without method restrictions.

    +
  • Technical Note