Project

General

Profile

Actions

Feature #17126

closed

globalString = HTTP_HOST dosn't work with config.baseURL

Added by Roman Pretory over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
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)

Actions #1

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.

Actions #2

Updated by Michael Stucki over 17 years ago

[globalString = IENV|HTTP_HOST=example.com]

IENV => t3lib_div::getIndpEnv()

Actions #3

Updated by Michael Stucki over 17 years ago

This is not a bug.

Actions

Also available in: Atom PDF