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: [email protected]
ReportedBy: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]