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?

  • 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, 2011 at 11:31
  • It was around 2 days ago.
    – bottleboot
    Oct 21, 2011 at 12:14

1 Answer 1


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

  • 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, 2011 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!!!) Oct 21, 2011 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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