[TYPO3-core] trustedHostsPattern

Xavier Perseguers xavier at typo3.org
Fri May 23 14:44:06 CEST 2014


Hi Helmut,

>> 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

Array
(
    [SERVER_NAME] => www.domain.com
    [REQUEST_URI] => /typo3/backend.php
    [REMOTE_ADDR] => 173.245.53.217
    [SERVER_PORT] => 443
    [HTTPS] => on
    [HTTP_HOST] => www.domain.com
)
string(1) "*"
string(0) ""
bool(true)

On first version, SERVER_PORT was 80.

>> 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


Array
(
    [REQUEST_URI] => /typo3/mod.php?M=tools_tximageautoresizeM1
    [REMOTE_ADDR] => 10.0.0.5
    [SERVER_PORT] => 8080
    [SERVER_NAME] => other-domain.tld
    [HTTP_HOST] => other-domain.tld
)
string(8) "10.0.0.5"
string(0) ""
bool(false)

Kind regards

-- 
Xavier Perseguers
TYPO3 CMS Team Member

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



More information about the TYPO3-team-core mailing list