From: Joshua Slive
Date: Mon, 25 Aug 2003 16:51:14 +0000 (+0000)
Subject: Backport:
X-Git-Tag: 2.0.48~111
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec02b6fc0592c2f82086bfd4d0199558322d3e82;p=thirdparty%2Fapache%2Fhttpd.git
Backport:
Make some regex examples a little more exact.
Submitted by: Jari Alto
PR: 22348
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101099 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/urlmapping.html.en b/docs/manual/urlmapping.html.en
index 5511f22a54e..4e3d519f011 100755
--- a/docs/manual/urlmapping.html.en
+++ b/docs/manual/urlmapping.html.en
@@ -92,7 +92,7 @@
directives to do powerful regular-expression based matching and
substitution. For example,
-ScriptAliasMatch ^/~([a-zA-Z0-9]*)/cgi-bin/(.*)
+ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+)
/home/$1/cgi-bin/$2
will map a request to
@@ -139,7 +139,7 @@
/home/user/public_html/file.html
, use the following
AliasMatch
directive:
-AliasMatch ^/upages/([a-zA-Z0-9]*)/?(.*)
+AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*)
/home/$1/public_html/$2
diff --git a/docs/manual/urlmapping.xml b/docs/manual/urlmapping.xml
index 894b9855143..03629c9f464 100644
--- a/docs/manual/urlmapping.xml
+++ b/docs/manual/urlmapping.xml
@@ -97,7 +97,7 @@
directives to do powerful regular-expression based matching and
substitution. For example,
-
ScriptAliasMatch ^/~([a-zA-Z0-9]*)/cgi-bin/(.*)
+ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+)
/home/$1/cgi-bin/$2
will map a request to
@@ -144,7 +144,7 @@
/home/user/public_html/file.html
, use the following
AliasMatch
directive:
-AliasMatch ^/upages/([a-zA-Z0-9]*)/?(.*)
+AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*)
/home/$1/public_html/$2