Server Fault is a question and answer site for system and network administrators. 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

Perhaps an easy question, but had difficulty finding a way to phrase it so that google gave results.

Currently I have

However, doing to gives the results for, rather than What is the proper CNAME/A Record approach to doing this?

share|improve this question
up vote 1 down vote accepted

I assume by "going to" you mean in a web browser?

If so, and they all have the same IP address, you'll need either:

  • a host header configured on the site hosting for, or
  • to become the default web site.

If this is IIS, the second can be accomplished by ensuring the other sites use the appropriate host headers.

share|improve this answer
Great this pointed me in the right direction. Ended up using ServerAlias in my VirtualHost file. Turns out Apache was defaulting to the first one it found, which happened to be – Brett van Zuiden Mar 24 '11 at 4:41
Its better to have apache redirect to using a 301 (permanant redirect). This will tell spiders like google that you only want indexed, and that's where you want all your traffic going, even if other link to, this can improve your search engine placement by consolidating everyting. – stew Mar 24 '11 at 11:05

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.