RewriteUrl + open_basedir

From: Date: Sat, 29 May 2004 23:56:08 +0000
Subject: RewriteUrl + open_basedir
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187210@lists.php.net to get a copy of this message
Hello everybody, I want to use RewriteUrl and open_basedir-restriction in a virtual host-directive together. 1) RewriteUrl DocumentRoot /srv/www RewriteRule ^/(.*)/(.*)$ /$1/$2 This redirects the request http://domain.de/dir1/dir2 to the local files /srv/www/dir1/dir2/ and works fine. 2) Then I want use the open_basedir-restriction like "php_admin_value open_basedir /srv/www/dir1" To use it dynamically I want to use the content of the variable $1 in the open_basedir-restriction. It would be sth. like this: "php_admin_value open_basedir /srv/www/$1", but it doesn´t work. The variable $1 won´t parsed. Do you know any other way? Thanks, Markus

« previous php.general (#187210) next »