Summary: | Alias cannot appear in directory context, contrary to docs | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | mjray |
Component: | mod_alias | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 2.4.43 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
mjray
2020-06-10 11:11:33 UTC
For the records, the French doc is not in line with it. Thank you for the information. Directory context appears to have been added by revision 1731088 but the commit message does not clarify it for me. https://svn.apache.org/viewvc?view=revision&revision=1731088 The doc should be tweaked. The "directory" mentioned is related to a set of directives. See [1]. This set is: <Directory>, <Location>, <Files>, <If>, and <Proxy> However, this directive is explicitly disallowed in <Directory>, <File> and <If> in the code. So it should work only in <Location> and <Proxy> + (server config and virtual host) [1]: https://httpd.apache.org/docs/2.4/mod/directive-dict.html#Context (In reply to mjr from comment #2) > Thank you for the information. > > Directory context appears to have been added by revision 1731088 but the > commit message does not clarify it for me. > > https://svn.apache.org/viewvc?view=revision&revision=1731088 xfomrs in the commit in related to xml --> html transformation when building the doc. The commit related to the real change is r1731081 on 2.4.x and r1653941 on trunk. Thank you again. If I may beg further indulgence: why is Alias forbidden in <If ...>...</If>? It really would ease macro-writing if some Alias statements could be conditional on a parameter. |