I have set up a Ubuntu Linux VPS with Moonshine (a Ruby on Rails deployment plugin/script) and hosting multiple sites on it (despite Moonshine being intended for one site/application), so far working well.
One little issue that I have with my server is that whenever I accidentally set up a vhost wrong or a vhost is not found, the browser is directed to the very first vhost site that I set up. Which concerns me because I don't want one site accidentally being associate with the other in case of some error or issue; what I would "rather" have it do is direct to some default place (like /var/www/default/oops.html) if there are any issues.
I've Googled the subject and the common answer is that order is everything in the vhost files, except I think that is assuming I have ALL my vhosts in one file. Instead, my vhosts are set up separately in the sites-available/enabled folders of apache (mydomain1.com, mydomain2.com, etc) and 'a2ensite' respectively, so how would I go about "ordering" these? (One of these files is a 'default' file, but doesn't seem to do anything.)
One other thing I saw was specify a default host in httpd.conf, except when I attempted to do so, it completely redirected ALL my vhost sites to the default.