#41620 [Opn]: Can't pass VirtualDocumentRoot Vars
ID: 41620
User updated by: ruud at rb-sound dot nl
Reported By: ruud at rb-sound dot nl
Status: Open
Bug Type: Apache2 related
Operating System: FreeBSD
PHP Version: 5.2.3
New Comment:
Apache reports bug as a php bug
http://issues.apache.org/bugzilla/show_bug.cgi?id=42606
Previous Comments:
------------------------------------------------------------------------
[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
Thread (6 messages)