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

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

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

--- Comment #1 from Christophe JAILLET <[hidden email]> ---
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #2 from [hidden email] ---
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #3 from Christophe JAILLET <[hidden email]> ---
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #4 from Christophe JAILLET <[hidden email]> ---
(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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64511

--- Comment #5 from [hidden email] ---
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: [hidden email]
For additional commands, e-mail: [hidden email]