devilbox/.devilbox/bin/apache-2.4/fix-virtual-docroot.php

4 lines
155 B
PHP
Raw Normal View History

2016-10-10 08:16:09 +00:00
<?php
// Fix DocumentRoot for VirtualDocumentRoot Hosts
$_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME']);