views:

12

answers:

1

I have two different domains I want to use for this website, how can I configure the virtual host to make this work?

Is it possible to assign it more than one server name?

Help!

+1  A: 

Yes. Use the ServerAlias directive alongside the ServerName directive.

skaffman
Great, thank you! For some reason i thought server alias only worked for local connections. Can I use several server aliases in a single server alias line?If so, do I have to separate them by comas or just spaces?
0al0
@oalo: Yes, you can string together as many space-separated values as you like. Alternatively, you can have multiple `ServerAlias` lines.
skaffman