[TYPO3-core] trustedHostsPattern
Peter Beernink
p.beernink at drecomm.nl
Mon May 26 10:20:17 CEST 2014
Hi Helmut,
As I came across the same issue on a SSL off-loading loadbalancer (non
CloudFlare) I've made a dump of the variables:
> [...]
>
>
> 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'));
Array
(
[HTTPS] => on
[HTTP_HOST] => www.hostname.tld
[SERVER_NAME] => www.hostname.tld
[SERVER_PORT] => 80
[REMOTE_ADDR] => <external IP address of visitor>
[REQUEST_URI] => /realURL/generated/path/
)
string(0) ""
string(0) ""
bool(true)
Because the webserver itself doesn't serve the site over SSL, the
HTTPS=on environment variable was not present by default.Therefore this
one is set in .htaccess using a SetEnvIfNoCase based on a X-header.
PHP is executed using the default Apache module, so no CGI.
Kind regards,
Peter
More information about the TYPO3-team-core
mailing list