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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: georgeb at intelinet dot ro
New email:
PHP Version: OS:

 

 [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: Mon May 06 05:01:31 2024 UTC