Enabled HTTP_X_FORWARDED_PROTO header detection. It was disabled for testing.

This commit is contained in:
Patrick Baus 2016-08-11 02:45:18 +02:00
parent dd6e9583a2
commit 61af45e872

View File

@ -25,7 +25,7 @@ if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
# Check if a proxy server downstream does encryption for us
elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && strtolower($_SERVER['HTTP_X_FORWARDED_SSL'])
== 'on') {
$isHTTPS = false;
$isHTTPS = true;
}
if (!$isHTTPS) {