[TYPO3-windows] Virtual Directories and IIS
Joel Finkel
finkel at sd-il.com
Thu Sep 11 22:50:34 CEST 2008
Folks,
I have all my websites on a network accessible server (NAS), called "NAS1".
I set up a new virtual website in IIS called TYPO3, and set the virtual
directory to "\\NAS1\Websites\TYPO3".
Unfortunately, line 49 of index.php contains this line, which converts "//"
to "/" and "\\" to "\":
define('PATH_thisScript',str_replace('//','/', str_replace('\\','/',
(php_sapi_name()=='cgi'||php_sapi_name()=='isapi'
||php_sapi_name()=='cgi-fcgi')&&($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED'])?
($_SERVER['ORIG_PATH_TRANSLATED']?$_SERVER['ORIG_PATH_TRANSLATED']:$_SERVER['PATH_TRANSLATED']):($_SERVER['ORIG_SCRIPT_FILENAME']?$_SERVER['ORIG_SCRIPT_FILENAME']:$_SERVER['SCRIPT_FILENAME']))));
Therefore, "\\NAS1\Websites\TYPO3" becomes "\NAS1\Websites\TYPO3", and,
because this is an invalid path, PHP cannot include any of the required
files.
I would appreciate any suggestions as to how to properly deal with this
configuration. Obviously, I can change the index.php code, but I am rather
loathe to modify such a fundamental file.
Thanks in advance,
Joel Finkel
More information about the TYPO3-windows
mailing list