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

            Bug ID: 64740
           Summary: CONTEXT_PREFIX not available with AliasMatch
           Product: Apache httpd-2
           Version: 2.4.39
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_alias
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

When I define an alias with this code :
>       Alias /pma2 /data/www/phpMyAdmin2/current
>       <Directory "/data/www/phpMyAdmin2/current">

I'm able to get the CONTEXT_PREFIX (from phpinfo() ) :
> _SERVER["CONTEXT_PREFIX"]     /pma2

However, as described in the AliasMatch documentation
(https://httpd.apache.org/docs/2.4/fr/mod/mod_alias.html#aliasmatch), if I
simply replace the previous configuration by :
>       AliasMatch "^/pma2/(.*)$" "/data/www/phpMyAdmin2/current/$1"
>       <Directory "/data/www/phpMyAdmin2/current">

The CONTEXT_PREFIX is not defined :
> _SERVER["CONTEXT_PREFIX"]     no value

Also, the documentation about the Apache variables
(https://httpd.apache.org/docs/2.4/fr/expr.html#vars) provides no description
about CONTEXT_PREFIX and CONTEXT_DOCUMENT_ROOT.

So, is this behaviour normal ? I really need to use AliasMatch (Alias doesn't
meet my needs). How can I retrieve the CONTEXT_PREFIX with the use of
AliasMatch ?

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