[TYPO3-core] trustedHostsPattern

Helmut Hummel helmut.hummel at typo3.org
Fri May 23 13:05:35 CEST 2014


Hi Xavier,

On 22.05.14 13:50, Xavier Perseguers wrote:

> 1) Use of flexible SSL with CloudFlare, client connects to CloudFlare on
> 443 but CF connects to the server on 80, https:// was detected but port
> did not match. Automatically fixed by using latest version of EXT:cloudflare
>
> 2) Use of a proxy nginx server, listening on 80 but forwarding to 8080
> instead of 80, this failed and I had to manually set trustedHostsPattern
> in localconf.php and could not rely on what the web server sent

Can you also post the following information here for both cases?

print_r(array_intersect_key($_SERVER, 
array('HTTP_HOST'=>'','SERVER_NAME'=>'','SERVER_PORT'=>'','REQUEST_URI'=>'','HTTPS'=>'','REMOTE_ADDR'=>'')));

var_dump($GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxyIP']);
var_dump($GLOBALS['TYPO3_CONF_VARS']['SYS']['reverseProxySSL']);
var_dump(t3lib_div::getIndpEnv('TYPO3_SSL'));


Make sure to *obfuscate the IP adresses and host names* in case they are 
sensible information in your case before posting here.


Kind regards,
Helmut

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 Core Developer, TYPO3 Security Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-team-core mailing list