Actions
Feature #17126
closedglobalString = HTTP_HOST dosn't work with config.baseURL
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2007-03-17
Due date:
% Done:
0%
Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:
Description
by using in the TypoScript Setup Code:
[globalString = HTTP_HOST= sample.org]
config.baseURL = sample.org
no baseURL is set in the Page by open this domain
(issue imported from #M5243)
Updated by Daniel Hahler over 17 years ago
Use
[globalString = _SERVER|HTTP_HOST=example.com]
instead.
You probably do not have the $HTTP_HOST PHP global available - it has been deprecated. Use $_SERVER['HTTP_HOST'] instead.
The only bug here seems to be a documentation issue: the examples in http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/ should use _SERVER|HTTP_HOST instead.
Updated by Michael Stucki over 17 years ago
[globalString = IENV|HTTP_HOST=example.com]
IENV => t3lib_div::getIndpEnv()
Actions