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 46198] New: mod_userdir is not giving the correct DOCUMENT_ROOT, also causes issues with mod_rewrite
Date Thu, 13 Nov 2008 15:03:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46198

           Summary: mod_userdir is not giving the correct DOCUMENT_ROOT,
                    also causes  issues with mod_rewrite
           Product: Apache httpd-2
           Version: 2.2.10
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache@hm2k.org


Similar to the "DOCUMENT_ROOT environment variable set incorrectly with
VirtualDocumentRoot" bug located here:
https://issues.apache.org/bugzilla/show_bug.cgi?id=26052

I have found that when using mod_userdir the DOCUMENT_ROOT does not return the
document root of the user.

IE:

visiting url:
 http://example.com/~user/
DOCUMENT_ROOT returns:
 /var/www/
it should return:
 /home/user/public_html/

I am on the understanding that we shouldn't rely on DOCUMENT_ROOT, however it
seems that other modules do, such as mod_rewrite where it looks in the wrong
place for the files.

IE:

RewriteRule ^(.+)$ index.php [L,QSA]

In url:
 http://example.com/~user/
It will be looking in:
 /var/www/
With url:
 http://user.example.com/
It will be looking in
 /home/user/public_html/

Both should be looking in the same place.

RewriteBase isn't possible as it is URL-based not filesystem.

This appears to be a fairly common bug, with no realistic solution.


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