Created
December 13, 2011 19:18
-
-
Save EHLOVader/1473452 to your computer and use it in GitHub Desktop.
Fix for VirtualDocumentRoot issues in Apache.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php apache_setenv("DOCUMENT_ROOT",$_SERVER['DOCUMENT_ROOT'] = str_replace($_SERVER['SCRIPT_NAME'], '', $_SERVER['SCRIPT_FILENAME'])) ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment