#41620 [Opn->Fbk]: Can't pass VirtualDocumentRoot Vars
| From: | tony2001@php.net | Date: | Thu, 07 Jun 2007 07:50:31 +0000 |
| Subject: | #41620 [Opn->Fbk]: Can't pass VirtualDocumentRoot Vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113514@lists.php.net to get a copy of this message | ||
ID: 41620
Updated by: tony2001@php.net
Reported By: ruud at rb-sound dot nl
-Status: Open
+Status: Feedback
-Bug Type: Apache2 related
+Bug Type: Feature/Change Request
Operating System: FreeBSD
PHP Version: 5.2.3
New Comment:
>The %0 only works on VirtualDocumentRoot.
>php doens't read the %0 value.
What %0 is supposed to mean?
Previous Comments:
------------------------------------------------------------------------
[2007-06-07 07:40:13] ruud at rb-sound dot nl
Apache reports bug as a php bug
http://issues.apache.org/bugzilla/show_bug.cgi?id=42606
------------------------------------------------------------------------
[2007-06-07 07:38:58] ruud at rb-sound dot nl
Description:
------------
php_admin_value open_basedir /usr/local/apache/vhosts/%0/www/
The %0 only works on VirtualDocumentRoot. php doens't read the %0
value.
Reproduce code:
---------------
In this example i try to chroot php. So user's can only access there
home dir.
<VirtualHost *>
Use CanonicalName off # use the name from the Host: header instead of
the DNS name
VirtualDocumentRoot /usr/local/apache/vhosts/%0/www/public_html/
php_admin_value open_basedir /usr/local/apache/vhosts/%0/www/
<VirtualHost>
The %0 only works on VirtualDocumentRoot. php doens't read the %0
value.
Expected result:
----------------
php_admin_value open_basedir
/usr/local/apache/vhosts/www.domain.tld/www/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41620&edit=1