diff options
author | momo-i <webmaster@momo-i.org> | 2011-02-01 07:16:22 +0900 |
---|---|---|
committer | momo-i <webmaster@momo-i.org> | 2011-02-01 07:16:22 +0900 |
commit | 245400143dc2398d395d2482e2dc4e904313b1d4 (patch) | |
tree | 893740252c648ee0fdbd6dd64cc852128797b610 /lib/init.php | |
parent | 4e354f5e31b8dbd0624a59e8e04e5e8eb3d67699 (diff) | |
download | ampache-245400143dc2398d395d2482e2dc4e904313b1d4.tar.gz ampache-245400143dc2398d395d2482e2dc4e904313b1d4.tar.bz2 ampache-245400143dc2398d395d2482e2dc4e904313b1d4.zip |
add force_ssl (for ssl reverse proxy)
Diffstat (limited to 'lib/init.php')
-rw-r--r-- | lib/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.php b/lib/init.php index 9c7adfe1..eae9a1fd 100644 --- a/lib/init.php +++ b/lib/init.php @@ -49,7 +49,7 @@ Config::set('prefix',$prefix); /* Check to see if this is http or https */ -if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') { +if ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || Config::get('force_ssl') == true) { $http_type = "https://"; } else { |