Re: Dynamically restrict accesses to virtual hosts' documentroots

From: Date: Thu, 17 Jan 2002 13:43:13 +0000
Subject: Re: Dynamically restrict accesses to virtual hosts' documentroots
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-5612@lists.php.net to get a copy of this message
On Thu, 17 Jan 2002, Rasmus Lerdorf wrote: > open_basedir I have looked at open_basedir and it seems not to solve my problem. I might be wrong, but could you please include an example where open_basedir is dynamically set to $DOCUMENT_ROOT? E.g. to make the below work (Setting it to '.' will make case 2 fail). > > This means that if http://www.example.com/foo/bar.php > > opens a file called > > "/fubar.html" then this file will be the same as: > > > > - http://www.example.com/fubar.html > > - $DOCUMENT_ROOT/fubar.html > > - /home/of/www.example.com/public_html/fubar.html > > > > www.example.net lives on the same machine. > > If http://www.example.net/baz/xyzzy.php opens a file > > called > > "/quux/quuux.txt" then this file will be the same as: > > > > - http://www.example.net/quux/quuux.txt > > - $DOCUMENT_ROOT/quux/quuux.txt > > - /home/of/www.example.net/public_html/quux/quuux.txt /Ole PS. Rasmus, tak for dit foredrag i SSLUG i maj 2000.

« previous php.install (#5612) next »