I had this working, then my VM server crashed.
I'm running Ubuntu on Oracle VirtualBox. Now I'm trying to add some server aliases, but it's not working.
In my 'sites-enabled' folder I have a file called
mysite.com. This has the following data:
<VirtualHost *:80> DocumentRoot /var/www/mysite/ ServerName mysite.com ServerAlias www.mysite.com, sub1.mysite.com, sub2.mysite.com <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/storelocator/> AllowOverride All Allow from all </Directory> </VirtualHost>
But I'm still not able to access the site using sub1.mysite.com. It only shows me the folders in www root folder.
What am I missing here?