Search code examples
apacheapache2apache-config

How can I make a virtual host accept multiple domains?


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?


Solution

  • Yes. Use the ServerAlias directive alongside the ServerName directive.