]> granicus.if.org Git - apache/commitdiff
Make some regex examples a little more exact.
authorJoshua Slive <slive@apache.org>
Mon, 25 Aug 2003 16:47:42 +0000 (16:47 +0000)
committerJoshua Slive <slive@apache.org>
Mon, 25 Aug 2003 16:47:42 +0000 (16:47 +0000)
Submitted by: Jari Alto <jari.aalto@poboxes.com>
PR: 22348

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101098 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/urlmapping.html.en
docs/manual/urlmapping.xml

index 5f06b3b8e39559d50d3f62ad4178c6553150d933..43fab22ceee609ddc779841dc1d3ad190f769608 100755 (executable)
@@ -92,7 +92,7 @@
     directives to do powerful regular-expression based matching and
     substitution. For example,</p>
 
-<div class="example"><p><code>ScriptAliasMatch ^/~([a-zA-Z0-9]*)/cgi-bin/(.*)
+<div class="example"><p><code>ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+)
       /home/$1/cgi-bin/$2</code></p></div>
 
     <p>will map a request to
     <code>/home/user/public_html/file.html</code>, use the following
     <code>AliasMatch</code> directive:</p>
 
-<div class="example"><p><code>AliasMatch ^/upages/([a-zA-Z0-9]*)/?(.*)
+<div class="example"><p><code>AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*)
       /home/$1/public_html/$2</code></p></div>
 </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
 <div class="section">
index 6bc121763af828929045f06155dd0af82e228077..986a2fb3b663ea5c1019991d6e052ad8bd10c140 100644 (file)
@@ -97,7 +97,7 @@
     directives to do powerful regular-expression based matching and
     substitution. For example,</p>
 
-<example>ScriptAliasMatch ^/~([a-zA-Z0-9]*)/cgi-bin/(.*)
+<example>ScriptAliasMatch ^/~([a-zA-Z0-9]+)/cgi-bin/(.+)
       /home/$1/cgi-bin/$2</example>
 
     <p>will map a request to
     <code>/home/user/public_html/file.html</code>, use the following
     <code>AliasMatch</code> directive:</p>
 
-<example>AliasMatch ^/upages/([a-zA-Z0-9]*)/?(.*)
+<example>AliasMatch ^/upages/([a-zA-Z0-9]+)/?(.*)
       /home/$1/public_html/$2</example>
 </section>