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

--- Comment #10 from Rich Bowen <[email protected]> ---
I'm trying to remember what I tested when I made this change. I'm very sorry
for incorrectly making this change, and I will revert.

Yeah, Alias is explicitly forbidden in <Directory>, <Location>, <Files>, <If>,
and <Proxy>

Looking at ap_check_cmd_context, the error path for individual containers is:

  if (((forbidden & NOT_IN_DIRECTORY) && find_parent(cmd->directive,
"<Directory"))
    || ((forbidden & NOT_IN_LOCATION) && find_parent(cmd->directive,
"<Location"))
    || ((forbidden & NOT_IN_FILES) && find_parent(cmd->directive, "<Files")
                                    || find_parent(cmd->directive, "<If")...)
    || ((forbidden & NOT_IN_PROXY) && find_parent(cmd->directive, "<Proxy")))


Since NOT_IN_DIR_CONTEXT includes ALL of these flags, Alias is rejected in
every container type: <Directory>, <Location>, <Files>, <If>, and <Proxy>.

Maybe the solution is:

  RewriteEngine On
  RewriteCond %{...} ...
  RewriteRule ^/fakepath(.*)$ /real/path\$1 [PT]

But I'm not sure if it is, since I'm not sure as to your usecase.

Regardless, though, my "fix" was incorrect, and I'll revert.

-- 
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