[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

VirtualHost and PHP security


I would like to know how to use 'VirtualDocumentRoot' in apache with PHP
flag (like 'open_basedir' and 'include_path'). Actually, when i put for
instance (in a 'VirtualHost' section):

VirtualDocumentRoot /home/www/%2+/%1/htdocs
php_admin_value open_basedir "/home/www/%2+/%1"
php_value include_path ".:/home/www/%2+/%1/php-include"

'%2+' and '%1' aren't replace at all, so it doesn't work, how i could do
such things with VirtualDocumentRoot or something else (mod_rewrite ?) ?

Thanks for your help,
Arnaud Fontaine <arnaud@andesi.org> - http://www.andesi.org/ | GPG
Public Key available on pgp.mit.edu | Fingerprint: D792 B8A5 A567 B001
C342 2613 BDF2 A220 5E36 19D3

Reply to: