You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/08/05 10:40:27 UTC

DO NOT REPLY [Bug 49705] New: Per request DocumentRoot

https://issues.apache.org/bugzilla/show_bug.cgi?id=49705

           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=25843)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25843)
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


DO NOT REPLY [Bug 49705] Per request DocumentRoot

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49705

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Stefan Fritsch <sf...@sfritsch.de> 2012-02-26 17:07:41 UTC ---
fixed in 2.4.1

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


DO NOT REPLY [Bug 49705] Per request DocumentRoot

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49705

--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2010-08-05 06:39:01 EDT ---
*** Bug 49706 has been marked as a duplicate of this bug. ***

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


DO NOT REPLY [Bug 49705] Per request DocumentRoot

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49705

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #2 from Stefan Fritsch <sf...@sfritsch.de> 2011-06-05 21:39:06 UTC ---
Fixed in trunk in r1132494

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