httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49706] New: Per request DocumentRoot
Date Thu, 05 Aug 2010 08:40:27 GMT

           Summary: Per request DocumentRoot
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core

Created an attachment (id=25842)
 --> (
Implementation of per request DocumentRoot

Attached patch implements per request DocumentRoot.

It keeps the DocumentRoot inside Core Module, but it copies it into each
individual request_rec.

This should solve long standing issue with mod-vhost-alias and other virtual
hosting modules (mod-vhost-ldap) having incorrect DocumentRoot (which is used
in other places like PHP and others).

Attached patch also makes necessary changes to mod-vhost-alias.

There is another user of ap_document_root() -> mod_rewrite.  This will need
more fixing in m-v-a if you use ${DOCUMENT_ROOT} in mod_rewrite.

r->document_root has to be rewritten before mod_rewrite call, then m-v-a has to
return DECLINED, and after mod_rewrite call there's need to be another m-v-a
hook which do the real work.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message