What's the output of the following?
Code:
ls /etc/apache2/sites-enabled/
AFAIK Apache sorts out the priority of vhosts by the alphabet/numeric. So normally you would need 2+ vhosts with multiple domains:
a 0-default (or something with a 0 to make sure it comes first). Now when someone visits your site by IP and there's no corresponding domain the person will get that page (so it's like a fallback/default page if nothing else matches)
I use this for mine:
Code:
# vHost configuration
<VirtualHost *:80>
ServerAdmin admin@nuvini.com
ServerName nuvini.com
ServerAlias www.nuvini.com
# Logs
DocumentRoot /srv/www/nuvini.com/public_html/
ErrorLog /srv/www/nuvini.com/logs/error.log
CustomLog /srv/www/nuvini.com/logs/access.log combined
</VirtualHost>
# Enable Rewrite
RewriteEngine On
I believe you can make a subdomain like "placeholder.hotmusicvideos.tv "and give people that page when something is invalid
(Though actually, purely for a fallback rewrite should not be needed)
After that your actual vhosts for normal content: (Editing out the domains since it's a private domain I use)
Code:
# vHost configuration
<VirtualHost *:80>
ServerAdmin admin@nuvini.com
ServerName <snip>
ServerAlias www.<snip>
# Logs
DocumentRoot /srv/www/<snip>/public_html/
ErrorLog /srv/www/<snip>/logs/error.log
CustomLog /srv/www/<snip>/logs/access.log combined
</VirtualHost>
# Enable Rewrite
RewriteEngine On
Regarding your errors:
The first one: I guess it is something wrong with the _default_ vhost that is enabled (the one where I used 0-default. Try the thing I posted above?
Second one: I think it means you're also listening on HTTPS (443) but there's no vhost configured for that port. If you're just using HTTP, so no HTTPS, disable listening on port 443 in the apache configuration. (Otherwise, adjust the virtualhost to also listen on port 443, and not just 80)
Also I'm not sure where you got the 4yahoo from, is it a site you own/host? Or did you insert this anywhere in your configuration?
Lastly, the edits you make with the vhosts: use /etc/apache2/sites-available to make the edits. The ones in sites-enabled are links to the sites-available files. Use a2ensite and a2dissite to disable/enable the virtual hosts. (e.g. a2dismod _default_ if you have a filed called _default_ in /etc/apache2/sites-available/)
Good luck, hope it's a bit clear :p