Setting Up Multiple Domains (plus wildcard subdomains) to Point to the Same Site/VirtualHost
Posted
by Derek Reynolds
on Server Fault
See other posts from Server Fault
or by Derek Reynolds
Published on 2010-03-05T22:15:55Z
Indexed on
2010/03/13
8:55 UTC
Read the original article
Hit count: 470
I have my primary domain with wildcard subdomains setup already.
username.maindomain.com
and maindomain.com
I want to provide my users with additional domains that they can select.
additional1.com
, additional2.com
, additional3.com
...
These additional domains would also need to support wildcard subdomains (as the subdomains route to a username).
Anyone know how to properly configure this in DNS and VirtualHost config?
Currently I have the additional domains as A records pointing to the same IP as my main domain (with a wildcard subdomain A record for each as well). In my VirtualHost config I am placing the additional domain names in the ServerAlias directive.
Let me know if any more detail is needed.
© Server Fault or respective owner