I know there aren’t many apache folks here (if any?) but figured I might try asking anyway…
When creating multiple sites on one host, instructions say to create a .conf file for each URL. e.g.
example.com.conf
containing:
<VirtualHost *:80>
DocumentRoot "/www/example.com"
ServerName example.com
SeverAlias www.example.com
</VirtualHost>
and
example.org.conf
containing:
<VirtualHost *:80>
DocumentRoot "/www/example.org"
ServerName example.org
ServerAlias www.example.org
</VirtualHost>
even though you can have the entries in a single file. (I think) like this:
example.conf
containing:
<VirtualHost *:80>
DocumentRoot "/www/example.com"
ServerName example.com
ServerAlias www.example.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/www/example.org"
ServerName example.org
ServerAlias www.example.org
</VirtualHost>
What’s the advantage of having 2 files over putting both settings within a single
example.conf
file?