devilbox/.devilbox/bin/apache-2.4/fix-virtual-docroot.php
2016-10-16 12:07:29 +02:00

4 lines
155 B
PHP
Executable File

<?php
// Fix DocumentRoot for VirtualDocumentRoot Hosts
$_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']);