diff options
author | Joshua Slive <slive@apache.org> | 2003-08-25 16:47:42 +0000 |
---|---|---|
committer | Joshua Slive <slive@apache.org> | 2003-08-25 16:47:42 +0000 |
commit | 1107cc35bbcd3f012a9b1224471561fe63d2cf37 (patch) | |
tree | 87f77f7df8ea9f0db5fd99e051d428b8b31a8be9 | |
parent | 41fd1c504c0268f1c665f4ac40a88b6363508418 (diff) | |
download | httpd-1107cc35bbcd3f012a9b1224471561fe63d2cf37.tar.gz |
Make some regex examples a little more exact.
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
-rwxr-xr-x | docs/manual/urlmapping.html.en | 4 | ||||
-rw-r--r-- | docs/manual/urlmapping.xml | 4 |
2 files changed, 4 insertions, 4 deletions
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,</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"> 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,</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> |