Config master SSL site detection update
This commit is contained in:
@@ -232,10 +232,16 @@ if (
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
// set SSL on
|
// set SSL on
|
||||||
if (
|
$is_secure = false;
|
||||||
(array_key_exists('HTTPS', $_SERVER) && !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ||
|
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
|
||||||
$_SERVER['SERVER_PORT'] == 443
|
$is_secure = true;
|
||||||
|
} elseif (
|
||||||
|
!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ||
|
||||||
|
!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on'
|
||||||
) {
|
) {
|
||||||
|
$is_secure = true;
|
||||||
|
}
|
||||||
|
if ($is_secure) {
|
||||||
define('HOST_SSL', true);
|
define('HOST_SSL', true);
|
||||||
define('HOST_PROTOCOL', 'https://');
|
define('HOST_PROTOCOL', 'https://');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user