From: Joshua Slive Date: Tue, 18 Oct 2005 16:22:04 +0000 (+0000) Subject: Document Roy's recent discovery that plain Alias/Redirect only X-Git-Tag: 2.3.0~2857 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae396927296254913acdcb83137fb71338855998;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@326143 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_alias.xml b/docs/manual/mod/mod_alias.xml index 2b40b8bc082..bfc76a5d4bc 100644 --- a/docs/manual/mod/mod_alias.xml +++ b/docs/manual/mod/mod_alias.xml @@ -113,7 +113,11 @@ ignored.

A request for http://myserver/image/foo.gif would cause the - server to return the file /ftp/pub/image/foo.gif.

+ 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 AliasMatch directive.

Note that if you include a trailing / on the url-path then the server will require a trailing / in @@ -206,7 +210,12 @@ a different URL

If the client requests http://example.com/service/foo.txt, it will be told to access http://foo2.example.com/service/foo.txt - instead.

+ 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 RedirectMatch directive.

+ Note

Redirect directives take precedence over Alias and ScriptAlias directives, irrespective of their ordering in