Skip to content

Commit

Permalink
Fixes #3255: On Acquia Cloud, acquia_config.php should better handle …
Browse files Browse the repository at this point in the history
…multisite
  • Loading branch information
anavarre committed Mar 22, 2019
1 parent c7e4e79 commit 6c886b7
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions scripts/simplesamlphp/acquia_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@
$protocol = 'https://';
$port = ':' . $_SERVER['SERVER_PORT'];*/

/**
* Support multi-site and single site installations at different base URLs.
*
* Overide $config['baseurlpath'] = "https://{yourdomain}/simplesaml/"
* to customize the default Acquia configuration.
*/
$config['baseurlpath'] = $protocol . $_SERVER['HTTP_HOST'] . $port . '/simplesaml/';

/**
* Cookies No Cache.
*
Expand Down Expand Up @@ -84,7 +76,14 @@

}
elseif (getenv('AH_SITE_ENVIRONMENT')) {
// Set ACE ad ACSF sites based on hosting database and site name.
/**
* Support multi-site and single site installations at different base URLs.
*
* Overide $config['baseurlpath'] = "https://{yourdomain}/simplesaml/"
* to customize the default Acquia configuration.
*/
$config['baseurlpath'] = $protocol . $_SERVER['HTTP_HOST'] . $port . '/simplesaml/';
// Set ACE and ACSF sites based on hosting database and site name.
$config['certdir'] = "/mnt/www/html/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/simplesamlphp/cert/";
$config['metadatadir'] = "/mnt/www/html/{$_ENV['AH_SITE_GROUP']}.{$_ENV['AH_SITE_ENVIRONMENT']}/simplesamlphp/metadata";
$config['baseurlpath'] = 'simplesaml/';
Expand Down

0 comments on commit 6c886b7

Please sign in to comment.