Managing Custom Logic in Drupal Multisite with sites.php and settings.php on Cloud IDEs for Multi-Experience Operations | Cloud IDE | Acquia Product Documentation
Cloud IDE
Managing Custom Logic in Drupal Multisite with sites.php and settings.php on Cloud IDEs for Multi-Experience Operations
Managing Custom Logic in Drupal Multisite with sites.php and settings.php on Cloud IDEs for Multi-Experience Operations
Date Published: September 4, 2025
To ensure consistent platform behaviour (reverse proxy, memcache, and so on), add the following line to your settings.php file after the require for settings.inc:
You might need to manually add these override files in non-production or development environment. For example, local IDEs. Sample: /var/acquia/drupal/settings/overrides.php
<?php
if (defined('Drupal::VERSION')) {
require_once '/var/acquia/drupal/settings/overrides-d8+.php';
} elseif (defined('VERSION')) {
if (version_compare(VERSION, '7', '>=')) {
require_once '/var/acquia/drupal/settings/overrides-d7.php';
}
}
Includes overrides-d8+.php. Sample: /var/acquia/drupal/settings/overrides-d8+.php
<?php
if (empty($settings['reverse_proxy_addresses']) && !empty($settings['ah_reverse_proxy_addresses'])) {
$settings['reverse_proxy_addresses'] = $settings['ah_reverse_proxy_addresses'];
}
Note
If these files are not present on your local, IDE, or development environment, you must do one of the following: