From d5424d2c9392b266857b2ca1546f9b51f8b61626 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Fri, 1 May 2009 00:40:41 +0000 Subject: [PATCH] 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 --- docs/manual/mod/core.html.en | 11 +++++++---- docs/manual/mod/core.xml | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en index ac02c7a759..dc5afc634a 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

top
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index 84b5f7b155..40f454db7a 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 -- 2.50.1