[TYPO3-windows] Virtual Directories and IIS
Mohr, Andreas
andreas.mohr at teraport.de
Fri Sep 12 08:14:26 CEST 2008
I´m not sure what you want to achieve, but my suggestion is that you set your NAS resolution in your website´s main configuration so it is not tampered with:
config.baseURL = http://localhost/
[globalString = IENV:TYPO3_SITE_URL= http://127.0.0.1]
config.baseURL = http://127.0.0.1/
[globalString = IENV:TYPO3_SITE_URL=\\NAS1\Websites\TYPO3]
config.baseURL = \\NAS1\Websites\TYPO3
[global]
Hope it solves the problem
Regards
Andi
-----Original Message-----
From: typo3-windows-bounces at lists.netfielders.de [mailto:typo3-windows-bounces at lists.netfielders.de] On Behalf Of Joel Finkel
Sent: Donnerstag, 11. September 2008 22:51
To: typo3-windows at lists.netfielders.de
Subject: [TYPO3-windows] Virtual Directories and IIS
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
_______________________________________________
TYPO3-windows mailing list
TYPO3-windows at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-windows
More information about the TYPO3-windows
mailing list