Skip to content

Commit

Permalink
fix base URI for api.finto.fi
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Oct 15, 2016
1 parent c2c2b2c commit 9b795b1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions conf/finto.fi/config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ define("SERVICE_LOGO", "./resource/pics/logo.png");
define("CUSTOM_CSS", "resource/css/finto.css");

// fix HTTPS connections coming in via Pound
if(isset($_SERVER['HTTP_X_SSL_CIPHER'])) {
define('BASE_HREF', 'https://finto.fi/');
// as well as api.finto.fi base URIs
if(isset($_SERVER['HTTP_X_SSL_CIPHER'])) {
if($_SERVER['HTTP_HOST'] == 'api.finto.fi')
define('BASE_HREF', 'https://api.finto.fi/');
else
define('BASE_HREF', 'https://finto.fi/');
} elseif ($_SERVER['HTTP_HOST'] == 'api.finto.fi') {
define('BASE_HREF', 'http://api.finto.fi/');
}

0 comments on commit 9b795b1

Please sign in to comment.