Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 55200 invoked from network); 23 Mar 2004 04:23:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Mar 2004 04:23:27 -0000 Received: (qmail 3660 invoked by uid 500); 23 Mar 2004 04:23:07 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 3635 invoked by uid 500); 23 Mar 2004 04:23:06 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 3622 invoked by uid 500); 23 Mar 2004 04:23:06 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Received: (qmail 3618 invoked from network); 23 Mar 2004 04:23:06 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 23 Mar 2004 04:23:06 -0000 Received: (qmail 55182 invoked by uid 1173); 23 Mar 2004 04:23:25 -0000 Date: 23 Mar 2004 04:23:25 -0000 Message-ID: <20040323042325.55181.qmail@minotaur.apache.org> From: slive@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/docs/manual/mod mod_alias.html.en mod_alias.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N slive 2004/03/22 20:23:25 Modified: docs/manual/mod mod_alias.html.en mod_alias.xml Log: Clarify the order of processing in mod_alias. PR: 21897 Revision Changes Path 1.25 +35 -1 httpd-2.0/docs/manual/mod/mod_alias.html.en Index: mod_alias.html.en =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_alias.html.en,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -b -u -r1.24 -r1.25 --- mod_alias.html.en 21 Feb 2004 00:31:34 -0000 1.24 +++ mod_alias.html.en 23 Mar 2004 04:23:25 -0000 1.25 @@ -56,12 +56,46 @@
  • ScriptAlias
  • ScriptAliasMatch
  • -

    See also

    +

    Topics

    +

    See also

    +
    top
    +
    +

    Order of Processing

    + +

    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 <VirtualHost> +section) they are processed in a particular order.

    + +

    First, all Redirects are processed before Aliases are processed, +and therefore a request that matches a Redirect or RedirectMatch will never have Aliases +applied. Second, the Aliases and Redirects are processed in the order +they appear in the configuration files, with the first match taking +precedence.

    + +

    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:

    + +

    +Alias /foo/bar /baz
    +Alias /foo /gaq +

    +

    But if the above two directives were reversed in order, the +/foo Alias +would always match before the /foo/bar Alias, so the latter directive would be +ignored.

    + +
    top

    Alias Directive

    1.17 +35 -0 httpd-2.0/docs/manual/mod/mod_alias.xml Index: mod_alias.xml =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_alias.xml,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -b -u -r1.16 -r1.17 --- mod_alias.xml 20 Feb 2004 18:41:18 -0000 1.16 +++ mod_alias.xml 23 Mar 2004 04:23:25 -0000 1.17 @@ -49,6 +49,41 @@ mod_rewriteMapping URLs to the filesystem +
    Order of Processing + +

    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 VirtualHost +section) they are processed in a particular order.

    + +

    First, all Redirects are processed before Aliases are processed, +and therefore a request that matches a Redirect or RedirectMatch will never have Aliases +applied. Second, the Aliases and Redirects are processed in the order +they appear in the configuration files, with the first match taking +precedence.

    + +

    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:

    + + +Alias /foo/bar /baz
    +Alias /foo /gaq +
    + +

    But if the above two directives were reversed in order, the +/foo Alias +would always match before the /foo/bar Alias, so the latter directive would be +ignored.

    + +
    + Alias Maps URLs to filesystem locations