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 2005/10/18 18:22:08 UTC
svn commit: r326143 - /httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
Author: slive
Date: Tue Oct 18 09:22:04 2005
New Revision: 326143
URL: http://svn.apache.org/viewcvs?rev=326143&view=rev
Log:
Document Roy's recent discovery that plain Alias/Redirect only
match complete path segments. I haven't tested the examples,
but they seem to be right according to the code.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_alias.xml
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/docs/manual/mod/mod_alias.xml?rev=326143&r1=326142&r2=326143&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_alias.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_alias.xml Tue Oct 18 09:22:04 2005
@@ -113,7 +113,11 @@
</example>
<p>A request for http://myserver/image/foo.gif would cause the
- server to return the file /ftp/pub/image/foo.gif.</p>
+ server to return the file /ftp/pub/image/foo.gif. Only complete
+ path segments are matched, so the above alias would not match a
+ request for http://myserver/imagefoo.gif. For more complex
+ matching using regular expressions, see the <directive
+ module="mod_alias">AliasMatch</directive> directive.</p>
<p>Note that if you include a trailing / on the
<var>url-path</var> then the server will require a trailing / in
@@ -206,7 +210,12 @@
<p>If the client requests http://example.com/service/foo.txt, it
will be told to access http://foo2.example.com/service/foo.txt
- instead.</p>
+ instead. Only complete path segments are matched, so the above
+ example would not match a request for
+ http://example.com/servicefoo.txt. For more complex matching
+ using regular expressions, see the <directive
+ module="mod_alias">RedirectMatch</directive> directive.</p>
+
<note><title>Note</title> <p>Redirect directives take precedence over
Alias and ScriptAlias directives, irrespective of their ordering in