Commit b48c4bf4 authored by fred's avatar fred

misc: let apache handle https redirection

parent 819a0446
...@@ -69,8 +69,6 @@ if (ini_get("safe_mode")) { ...@@ -69,8 +69,6 @@ if (ini_get("safe_mode")) {
/* PHPLIB inclusions : */ /* PHPLIB inclusions : */
$root="/var/alternc/bureau/"; $root="/var/alternc/bureau/";
/* Server Domain Name */
$host=getenv("HTTP_HOST");
/* Global variables (AlternC configuration) */ /* Global variables (AlternC configuration) */
require_once($root."class/local.php"); require_once($root."class/local.php");
...@@ -79,12 +77,6 @@ require_once($root."class/db_mysql.php"); ...@@ -79,12 +77,6 @@ require_once($root."class/db_mysql.php");
require_once($root."class/functions.php"); require_once($root."class/functions.php");
require_once($root."class/variables.php"); require_once($root."class/variables.php");
// Redirection si appel https://(!fqdn)/
if ($_SERVER["HTTPS"]=="on" && $host!=$L_FQDN) {
header("Location: https://$L_FQDN/");
}
// Classe hrite de la classe db de la phplib. // Classe hrite de la classe db de la phplib.
/** /**
* Class for MySQL management in the bureau * Class for MySQL management in the bureau
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment