I've a web server with CentOS and DirectAdmin. I found that
php is allowed to ignore the virtual host
DocumentRoot. For example the following code:
<?php print_r(scandir('/')); ?>
Result on a listing of the root directory of the server.
Could it be related with SuPHP and php script running with user privileges (which is of course allowed to list the root directory)? How to avoid it and set a path for php
/ directory? I would love to have
/ pointing to the virtual host
DocumentRoot or, even better, the user home folder.