devilbox/bin/apache-2.4/fix-virtual-docroot.php
2016-10-09 18:47:49 +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']);