httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49706] New: Per request DocumentRoot
Date Thu, 05 Aug 2010 08:40:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49706

           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
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ondrej@sury.org


Created an attachment (id=25842)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


Mime
View raw message