I have a couple of drupal sites running from the same host, using apache vhosts to do domain name forwarding.
I have many domains/url's dns entries pointing to this server's ip address, some of which are not currently live websites (they fail/default over to my main website).
When a user registers on one of the sites, or the site sends me an email alert, it includes a link at the bottom of the email where I can click and view the user account, etc.
The problem is, it seems the domain/url in the link changes randomly, and is not always the domain/url of the actual site it's from. They are all domains I own and are pointing at the box, so it's like drupal does a DNS lookup on itself, then uses one of the returned domains to include in the email instead of the sitename set in the settings.
How can I fix this so emails will include a link to the proper domain they originated from?
[site:name]
, and the drupal instance is very much aware of it's site-name, as it's configured inadmin>config>system
. Seems odd it wouldn't just use that setting always.