From 1fbc99da80aba7bbab2bf1925d4ddf3822f98a73 Mon Sep 17 00:00:00 2001
From: Nilgun Belma Buguner Aliases and Redirects occuring in different contexts are processed
-like other directives according to standard merging rules. But when multiple
-Aliases or Redirects occur in the same context (for example, in the
-same First, all Redirects are processed before Aliases are processed,
-and therefore a request that matches a For this reason, when two or more of these directives apply to the
-same sub-path, you must list the most specific path first in order for
-all the directives to have an effect. For example, the following
-configuration will work as expected: But if the above two directives were reversed in order, the
- Aliases and Redirects occuring in different contexts are processed
+ like other directives according to standard merging rules. But when multiple
+ Aliases or Redirects occur in the same context (for example, in the
+ same First, all Redirects are processed before Aliases are processed,
+ and therefore a request that matches a For this reason, when two or more of these directives apply to the
+ same sub-path, you must list the most specific path first in order for
+ all the directives to have an effect. For example, the following
+ configuration will work as expected: But if the above two directives were reversed in order, the
+
-Alias /foo /gaq
-/foo
/foo/bar
+ Alias /foo /gaq
+ /foo
/foo/bar
The
A request for http://myserver/image/foo.gif would cause the
- 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
A request for http://myserver/image/foo.gif
would cause
+ the 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
Note that if you include a trailing / on the
url-path then the server will require a trailing / in
- order to expand the alias. That is, if you use Alias
- /icons/ /usr/local/apache/icons/
then the url
- /icons
will not be aliased.
Alias /icons/ /usr/local/apache/icons/
then the url /icons
will not be aliased.
Note that you may need to specify additional
This directive is equivalent to
If the client requests http://example.com/service/foo.txt, it - will be told to access http://foo2.example.com/service/foo.txt +
If the client requests http://example.com/service/foo.txt
,
+ it will be told to access
+ http://foo2.example.com/service/foo.txt
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
+ http://example.com/servicefoo.txt
. For more complex matching
using regular expressions, see the
Redirect directives take precedence over -Alias and ScriptAlias directives, irrespective of their ordering in -the configuration file.
Redirect directives take precedence over Alias and ScriptAlias + directives, irrespective of their ordering in the configuration + file.
If no status argument is given, the redirect will be "temporary" (HTTP status 302). This indicates to the client @@ -276,7 +280,7 @@ the configuration file.
This directive is equivalent to
This directive is equivalent to