diff options
author | Joshua Slive <slive@apache.org> | 2003-08-25 16:51:14 +0000 |
---|---|---|
committer | Joshua Slive <slive@apache.org> | 2003-08-25 16:51:14 +0000 |
commit | ec02b6fc0592c2f82086bfd4d0199558322d3e82 (patch) | |
tree | c67f2aaa065699a6a2715cd83f29ba10ff6b083b /docs | |
parent | 0acb0e13e2b294285a70b63ec2a2fb392dee1b21 (diff) | |
download | httpd-ec02b6fc0592c2f82086bfd4d0199558322d3e82.tar.gz |
Backport:
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/branches/APACHE_2_0_BRANCH@101099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-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 5511f22a54..4e3d519f01 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 894b985514..03629c9f46 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> |