I am trying to use the domain module running a reverse proxy using nginx through to an apache2 vhost.
The site, and the "drupal domain" both have an nginx site each which both reverse proxy to the same Apache2 vhost using a ServerAlias directive as is described in the INSTALL.txt instructions. I have read these instructions through several times.
The access log of the Apache2 servers drupal site shows the HTTP headers containing the correct "drupal domain" sitename. (not internal-sitename)
The INSTALL.txt made no mention of using a reverse proxy or its effect, The "ServerName" on the Apache2 server is actually internal-sitename , whereas on the internet facing nginx server the site is advertised as "sitename" which is then reverse proxied to internal-sitename.
I am considering the internal-sitename is interfering with the domain modules interpretation of the requested site, despite the correct sitename in the HTTP request being passed to Apache2
Any help regarding this would be appreciated.
Comments
Comment #1
agentrickardI know nothing about nginx or reverse proxies. Your analysis sounds correct. The domain name hitting that proxy (e.g. one.example.com) needs to be passed to Apache and then to Drupal.
For debugging purposes, understand that both Drupal and DA read the $_SERVER['HTTP_HOST'] value in PHP, so you should see how that value is getting set by your configuration.
Comment #2
bluegeek9 commentedDrupal 6 in End of Life and no longer supported. We encourage you to upgrade to a supported version of Drupal. For more information, see https://www.drupal.org/upgrade.