Enabled HTTP_X_FORWARDED_PROTO header detection. It was disabled for testing.
This commit is contained in:
parent
dd6e9583a2
commit
61af45e872
@ -25,7 +25,7 @@ if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
|
|||||||
# Check if a proxy server downstream does encryption for us
|
# 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'])
|
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') {
|
== 'on') {
|
||||||
$isHTTPS = false;
|
$isHTTPS = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$isHTTPS) {
|
if (!$isHTTPS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user