Loading...



Date Published: September 4, 2025

Managing Custom Logic in Drupal Multisite with sites.php and settings.php on Cloud IDEs for Multi-Experience Operations

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:

< php require '/var/acquia/drupal/settings/overrides.php';

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'];
}

 

 

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation
Back to Site navigation