Project

General

Profile

Actions

Feature #49309

closed

Hook in t3lib_div::getIndpEnv

Added by Albrecht Köhnlein over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-06-21
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hi TYPO3 team,

in one of our current projects, we're testing TYPO3 behind a content delivery network. The CDN requests all contents from the origin server by its IP address, before delivering the results to the user. The problem is, that t3lib_div::getIndpEnv('HTTP_HOST') and t3lib_div::locationHeaderUrl are always returning the address of the origin server, instead of the public domain.

Unfortunately, I cannot solve this problem with configurating $TYPO3_CONF_VARS[SYS][reverseProxyIP], because all requests from CDN to the origin server are from a huge amount of different IP addresses, so there is no fix value
The best idea, I have at the moment is, to ask about a new hook in the beginning of t3lib_div::getIndpEnv(), so I could check against the current HTTP_HOST variable and return the public domain instead of internal origin address.

And it would be great to have this feature even in TYPO3 4.5 LTS. ;)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #39016: Hook to modify t3lib_div::getIndpEnv return valueClosed2012-07-17

Actions
Actions #1

Updated by Christian Kuhn over 11 years ago

  • Status changed from New to Closed

closed as dupe of #39016

Actions

Also available in: Atom PDF