How can I make a virtual host accept multiple domains?

agente_secreto picture agente_secreto · Apr 30, 2010 · Viewed 29.6k times · Source

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?

Answer

skaffman picture skaffman · Apr 30, 2010

Yes. Use the ServerAlias directive alongside the ServerName directive.