Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Basically you've already written how to do it:

Create A resource records for example.com and *.example.com, then add ServerAlias example.com *.example.com to the appropriate VirtualHost in your Apache httpd configuration. ServerAlias can occur multiple times inside a VirtualHost container.

share|improve this answer
    
The issue was in how I was setting up my DNS records. I needed a set of records for each domain, where I was trying to add multiple records for different domains under my primary domain. –  Derek Reynolds Mar 7 '10 at 17:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.