Apache 2: I have multiple domain names I want to point to one Virtual Host. Do I use ServerAlias?

Posted by Chris Altman on Server Fault See other posts from Server Fault or by Chris Altman
Published on 2010-04-22T14:18:48Z Indexed on 2010/04/22 14:23 UTC
Read the original article Hit count: 341

Filed under:
|

I have multiple domain names, for example:

  1. www.foo.com
  2. www.goo.com
  3. www.moo.com
  4. www.coo.com

I want all of these domain names to resolve to one website AND to redirect to www.foo.com

What is the best method to achieve this?

  • Multiple entries?
  • Use ServerAlias?
  • Something else?

If the best method is ServerAlias, what is the syntax?

ServerAlias www.goo.com, www.moo.com, www.coo.com

© Server Fault or respective owner

Related posts about apache

Related posts about serveralias