www.example.com. 1800 IN CNAME example.com.
other.example.com. 1800 IN CNAME example.com.
Which method is correct in Apache when all entries point to the exact same DocumentRoot?
Would the following method work?
<VirtualHost *:80>
DocumentRoot "/some/place/"
ServerName example.com
</VirtualHost>
OR I shall create an VirtualHost entry for each CNAME?
<VirtualHost *:80>
DocumentRoot "/some/place/"
ServerName example.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/some/place/"
ServerName www.example.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/some/place/"
ServerName other.example.com
</VirtualHost>