Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|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
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

share|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

Your Answer


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.