3

since the base URL config is deprecated and our Drupal 9 Site is using load balancer we are facing issue setting up the base URL .

instead of base URL its displaying the load balancer IP ,

any help regarding the same is appreciated

Referred the following suggestion from drupal.org and blogs and made the following changes

$settings['reverse_proxy'] = TRUE;
$settings['reverse_proxy_addresses'] = array($_SERVER['REMOTE_ADDR']);
$settings['reverse_proxy_host_header'] = 'X-ORIGINAL-HOST';

$settings['trusted_host_patterns'] = [
  '^d9\.johndoe\.dev$',
  '^10\.101\.9\.23$',
];

this worked for D8 setup but not foe the D9 setup

links referred as of now

John Aroza
  • 31
  • 4

0 Answers0