I have created a file called newsite in sites-available directory. It has the following contents:
<VirtualHost *:80> ServerAdmin email@example.com DocumentRoot /home/me/Development/www/newsite ServerName newsite.biz ServerAlias *.newsite.biz </VirtualHost>
In the /etc/hosts file I have created an entry as follows:
I then enabled the site using a2ensite, and restarted apache, but when I browse to the site it wants to load newsite.biz from the public web.
Also, earlier today the problem was that it was showing Ubuntu's default index.html, but not the one from /var/www. (I modified this one just to check...)
What am I doing wrong?