From 80b320f0ca1d4dd1e8096f155334f0419a5733d4 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 4 Mar 2017 15:45:31 +0100 Subject: Use environment variable "REQUEST_SCHEME" instead of "HTTPS" to determine the current used protocol. --- core/configuration-example.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/configuration-example.php b/core/configuration-example.php index 80192cf..1416621 100644 --- a/core/configuration-example.php +++ b/core/configuration-example.php @@ -45,7 +45,7 @@ Application::set('TEMPLATE.LANG', Application::get('CORE.LANGUAGE')); #=============================================================================== # Protocol, hostname and path for this installation #=============================================================================== -Application::set('PATHINFO.PROT', isset($_SERVER['HTTPS']) ? 'https' : 'http'); +Application::set('PATHINFO.PROT', $_SERVER['REQUEST_SCHEME']); Application::set('PATHINFO.HOST', $_SERVER['HTTP_HOST']); Application::set('PATHINFO.BASE', ''); -- cgit v1.2.3