[Bug 64511] Alias cannot appear in directory context, contrary to docs
| Newsgroups | gmane.comp.apache.documentation |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
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 <Location>, <Proxy>, and <If>. Blocked in <Directory> and <Files>. The current docs list "directory" as a valid context, which is misleading — <Directory> itself doesn't work. The 1-arg form inside <Location> and <Proxy> is already shown in the examples. Note: comment #5 asked why Alias is forbidden in <If> — it actually isn't forbidden there for the 1-arg form. If support for Alias in <Directory> or <Files> is still desired, please open a separate feature request ticket. -- You are receiving this mail because: You are the assignee for the bug.