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

4 lines
155 B
PHP
Raw Normal View History

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