Update config.php
See Issue #106 AlternC should allow HTTPS panel access for different host names
This commit is contained in:
parent
ade5c51f0f
commit
04c36baa77
|
@ -169,8 +169,7 @@ $hooks = new m_hooks();
|
|||
|
||||
|
||||
// https: Redirection if not calling https://!fqdn or if https is forced
|
||||
if ((variable_get('force_https', '0', "This variable is set to 0 (default) if users can access the management desktop through HTTP, otherwise we force HTTPS")&&(!isset($_SERVER["HTTPS"])|| ($_SERVER["HTTPS"] != "on")))
|
||||
||(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" && $host != $L_FQDN)) {
|
||||
if ((variable_get('force_https', '0', "This variable is set to 0 (default) if users can access the management desktop through HTTP, otherwise we force HTTPS")&&(!isset($_SERVER["HTTPS"])|| ($_SERVER["HTTPS"] != "on")))) {
|
||||
// do not redirect if access is not by HTTP(s)
|
||||
if (isset($_SERVER['REQUEST_URI'])) {
|
||||
header("Location: https://$L_FQDN".$_SERVER['REQUEST_URI']);
|
||||
|
|
Loading…
Reference in New Issue