You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/06/10 11:11:33 UTC

[Bug 64511] New: Alias cannot appear in directory context, contrary to docs

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

            Bug ID: 64511
           Summary: Alias cannot appear in directory context, contrary to
                    docs
           Product: Apache httpd-2
           Version: 2.4.43
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_alias
          Assignee: bugs@httpd.apache.org
          Reporter: mjr@phonecoop.coop
  Target Milestone: ---

Steps to Reproduce:
 1. Put an Alias (or ScriptAlias) inside a <Directory ...> or <If ...> tag pair
in the configuration.
https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias says it is OK in
directory context.
 2. Run apache2ctl configtest

Actual Results:
  Alias cannot occur within directory context

Expected Results:
  Syntax OK

Build:
  2.4.43 built 2020-05-10T19:30:48

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64511] Alias cannot appear in directory context, contrary to docs

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #3 from Christophe JAILLET <ch...@wanadoo.fr> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64511] Alias cannot appear in directory context, contrary to docs

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #1 from Christophe JAILLET <ch...@wanadoo.fr> ---
For the records, the French doc is not in line with it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64511] Alias cannot appear in directory context, contrary to docs

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #2 from mjr@phonecoop.coop ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64511] Alias cannot appear in directory context, contrary to docs

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #4 from Christophe JAILLET <ch...@wanadoo.fr> ---
(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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 64511] Alias cannot appear in directory context, contrary to docs

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #5 from mjr@phonecoop.coop ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org