From: Joshua Slive
Date: Mon, 25 Aug 2003 16:47:42 +0000 (+0000)
Subject: Make some regex examples a little more exact.
X-Git-Tag: pre_ajp_proxy~1214
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1107cc35bbcd3f012a9b1224471561fe63d2cf37;p=apache
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/trunk@101098 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/urlmapping.html.en b/docs/manual/urlmapping.html.en
index 5f06b3b8e3..43fab22cee 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 6bc121763a..986a2fb3b6 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