From: Rich Bowen
Date: Fri, 1 May 2009 00:40:41 +0000 (+0000)
Subject: Add a reference to LocationMatch in the seealso section.
X-Git-Tag: 2.3.3~679
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5424d2c9392b266857b2ca1546f9b51f8b61626;p=thirdparty%2Fapache%2Fhttpd.git
Add a reference to LocationMatch in the seealso section.
Encourage people to use LocationMatch rather than Location ~
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@770502 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en
index ac02c7a7591..dc5afc634a1 100644
--- a/docs/manual/mod/core.html.en
+++ b/docs/manual/mod/core.html.en
@@ -1987,8 +1987,8 @@ URLs
characters. Neither wildcard character matches a / in the URL-path.
Regular expressions
- can also be used, with the addition of the
- ~ character. For example:
+ can also be used, with the addition of the ~
+ character. For example:
<Location ~ "/(extra|special)/data">
@@ -1996,7 +1996,9 @@ URLs
would match URLs that contained the substring /extra/data
or /special/data. The directive <LocationMatch> behaves
- identical to the regex version of <Location>.
+ identical to the regex version of <Location>, and is preferred, for the
+ simple reason that ~ is hard to distinguish from
+ - in many fonts.
The <Location>
functionality is especially useful when combined with the
@@ -2038,7 +2040,8 @@ URLs
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index 84b5f7b155f..40f454db7a0 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -1970,8 +1970,8 @@ URLs
characters. Neither wildcard character matches a / in the URL-path.
Regular expressions
- can also be used, with the addition of the
- ~ character. For example:
+ can also be used, with the addition of the ~
+ character. For example:
<Location ~ "/(extra|special)/data">
@@ -1981,7 +1981,9 @@ URLs
or /special/data. The directive LocationMatch behaves
identical to the regex version of Location.
+ type="section">Location, and is preferred, for the
+ simple reason that ~ is hard to distinguish from
+ - in many fonts.
The Location
functionality is especially useful when combined with the
@@ -2024,7 +2026,8 @@ URLs
How <Directory>, <Location>
and <Files> sections work for an explanation of how these
- different sections are combined when a request is received
+ different sections are combined when a request is received.
+LocationMatch