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 am working on a site which can have user portfolios.

The url we want to use is abc.mysite.com.

We want to give users to be able to purchase a domain name from us (we can integrate our system with domain reselling api).

My question is, how we can map the user domains like www.abc.com to our site abc.mysite.com

Thanks, Ankur

share|improve this question

1 Answer 1

Do you have separate Apache virtual hosts for each abc.mysite.com? I assume yes.

You can edit the virtual host configuration file, e.g. abc.mysite.com.conf, and add:

ServerAlias www.abc.com

And of course add a DNS A record.

share|improve this answer

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.