https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

Rich Bowen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|mod_alias                   |Documentation
           Assignee|[email protected]       |[email protected]

--- Comment #6 from Rich Bowen <[email protected]> ---
The Alias directive has two forms with different context restrictions:

1. Two-arg form (Alias /url /path): Uses NOT_IN_DIR_CONTEXT in
   the code (mod_alias.c L154). Only works in server config and
   virtual host.

2. One-arg form (Alias /path, inside a container): Uses
   NOT_IN_DIRECTORY|NOT_IN_FILES (mod_alias.c L214). Works in
   &lt;Location&gt;, &lt;Proxy&gt;, and &lt;If&gt;. Blocked in
&lt;Directory&gt; and
   &lt;Files&gt;.

The current docs list "directory" as a valid context, which is
misleading — &lt;Directory&gt; itself doesn't work. The 1-arg form
inside &lt;Location&gt; and &lt;Proxy&gt; is already shown in the examples.

Note: comment #5 asked why Alias is forbidden in &lt;If&gt; — it
actually isn't forbidden there for the 1-arg form.

If support for Alias in &lt;Directory&gt; or &lt;Files&gt; is still desired,
please open a separate feature request ticket.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to