What is the correct way to setup my virtual hosts in Apache to serve 2 differnt domains?
- by Michael
I have a current website on an Apache server (foo.com) and I want the same server to serve a new site (bar.com), is this the correct way to setup my virtual hosts?
<VirtualHost *:80
ServerName foo.com
ServerAlias www.foo.com
Include conf.d/foo.conf
</VirtualHost
<VirtualHost *:80
ServerName bar.com
ServerAlias…