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: 374
apache
|serveralias
I have multiple domain names, for example:
- www.foo.com
- www.goo.com
- www.moo.com
- 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