php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18663 When using VirtualDocumentRoot, $DOCUMENT_ROOT indicates global document root
Submitted: 2002-07-31 08:33 UTC Modified: 2002-07-31 18:24 UTC
From: georgeb at intelinet dot ro Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.2 OS: RH Linux 7.2 kernel 2.4.9 (rh)
Private report: No CVE-ID: None
 [2002-07-31 08:33 UTC] georgeb at intelinet dot ro
Apache 1.3.22-6 (Red Hat 7.2 RPM)
When using name-based virtual hosting and VirtualDocumentRoot, $DOCUMENT_ROOT contains the global DocumentRoot (the one configured in the default virtual host). Is this expected behaviour? 

Afterall, assert(strcmp($DOCUMENT_ROOT.$PHP_SELF,$SCRIPT_FILENAME)==0) sould not fail under any circumstances, should it.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 18:24 UTC] sniper@php.net
PHP shows what apache tells it the DOCUMENT_ROOT should be..
Not PHP bug, report this to Apache folks.

(Or just do what everybody else is doing and use DocumentRoot in your virtualhosts and not that quite uncommon VirtualDocumentRoot directive...)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 02:01:30 2024 UTC