You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2003/08/25 18:47:42 UTC
cvs commit: httpd-2.0/docs/manual urlmapping.xml urlmapping.html.en
slive 2003/08/25 09:47:42
Modified: docs/manual urlmapping.xml urlmapping.html.en
Log:
Make some regex examples a little more exact.
Submitted by: Jari Alto <ja...@poboxes.com>
PR: 22348
Revision Changes Path
1.9 +2 -2 httpd-2.0/docs/manual/urlmapping.xml
Index: urlmapping.xml
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/urlmapping.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -b -u -r1.8 -r1.9
--- urlmapping.xml 12 Apr 2003 15:04:43 -0000 1.8
+++ urlmapping.xml 25 Aug 2003 16:47:42 -0000 1.9
@@ -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
@@ -144,7 +144,7 @@
<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>
1.24 +2 -2 httpd-2.0/docs/manual/urlmapping.html.en
Index: urlmapping.html.en
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/urlmapping.html.en,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -b -u -r1.23 -r1.24
--- urlmapping.html.en 29 May 2003 16:12:36 -0000 1.23
+++ urlmapping.html.en 25 Aug 2003 16:47:42 -0000 1.24
@@ -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
@@ -139,7 +139,7 @@
<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">