Linode suggests defining each virtual host in a separate file in
/etc/apache2/sites-available (on ubuntu) and then enabling each site using
a2ensite. I am coming from a VPS where all my virtual hosts are defined in one
httpd.conf file, and trying to convert things into the recommended format.
One of the things I have set up is a wildcard subdomain for my main site, which are later mapped to userspace. However, I also have static subdomains. I am under the impression that the static subdomains need to live above the wildcard in my configuration so if one of the static subdomains is accessed, apache uses the correct virtual host instead of hitting the wildcard.
If this is true, how can precedence be defined if using one file per site? Or do I need to just stick to one site file and stick all the subdomains in the same file as the main virtual host?