Issue Feature Closed

#49309Hook in t3lib_div::getIndpEnv

Albrecht Köhnlein 06/21/13, 11:59 updated 07/14/13, 12:14

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. ;)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.