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 a server with a subdomain - http://sub.example.com, and we have a client that wants to map one of their subdomains to ours.

We are running centos.

My understanding is that the client has to create a cname record that points from their subdomain to http://sub.example.com.

However, I am not sure if I need to actually do anything on my side to enable this?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

They need to create a CNAME that points to sub.example.com (without any http or anything).

If you run Apache on your server, you then need to add an ServerAlias with the domain name of your client to the vhost that should handle these requests.

share|improve this answer
1  
Beaware that it won't like doing this with https, as certificates only work for a single domain. –  AliGibbs Mar 28 '12 at 13:30
    
OK, this need to work with SSL - what needs to happen in this case? –  JonoB Mar 28 '12 at 13:41
    
Server Name Indication works for newer clients. If you have older clients (such as IE 6) and you care about the warning they get then you will need another IP address. –  Ladadadada Mar 28 '12 at 13:56
add comment

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.