After upgrading Ubuntu to 8.10 I was upset to find out that my virtual hosts in apache no longer seem to work. Everything went to the default host. After doing a little research I found that in ports.conf they have now specified the port in NameVirtualHost:


NameVirtualHost *:80

When it use to be:


NameVirtualHost *

I tried changing this NameVirtualHost back to the old way but that seemed to give me more errors. The solution to this is to find wherever you have your VirtualHost declared(could be in /etc/apache2/httpd.conf or in the site’s conf files in /etc/apache2/sites-enabled) and add :80 to it like the following:


<VirtualHost *:80>
ServerName test.localhost
DocumentRoot /home/username/www/test/
</VirtualHost>

Then you just need to restart Apache:


sudo /etc/init.d/apache2 restart

Hope this helps someone out, surely helped me!