I have a subdomain:

sub.domain-one.com which has a CNAME which points to sub.domain-two.com. All good. But when I enter sub.domain-one.com I don't see the sub.domain-two.com, but the basic page of the server.

What am I doing wrong?

link|improve this question
How long ago did you make the change to the sub.domain-one.com CNAME record? It's possible that the change hasn't propogated yet. – Nick Oct 21 '11 at 11:31
It was around 2 days ago. – bottleboot Oct 21 '11 at 12:14
feedback

1 Answer

up vote 0 down vote accepted

sub.domain-two.com must be exist on http (?) server as separate host in any form. Only CNAME don't answer on all questions

link|improve this answer
sub.domain-two.com does exist as a separate host on a http server. I can visit that site when i enter it's address. That's what I don't understand. – bottleboot Oct 21 '11 at 12:15
Damn! I must wrote sub.domain-one.com, not two... Because client sent "Host: sub.domain-one.com" in http-request. If you want to show two, when one requested, you have to have some different tricks (ServerAlias or Redirect, TBT!!!) – Lazy Badger Oct 21 '11 at 17:32
feedback

Your Answer

 
or
required, but never shown

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