You are here
Virtual Host Not Resolving
Hello all,
I have recently installed a new virtaul machine using the TurnKey Linux LAMP appliance. The setup was successful but I am having trouble creating virtual hosts.
I followed the advice on the post found here: http://www.turnkeylinux.org/forum/support/20111129/lamp-virtualhost-name-based . My virtual host file looks like this:
<VirtualHost *:80>
ServerName test.jay
ServerAdmin webmaster@localhost
DocumentRoot /var/www/test/html
</VirtualHost>
The directory /var/ww/test/html contains one file, index.html, which has a bit of markup in it to let me know the page loaded successfully.
I ran a2ensite and my site was added to the sites-enabled directory. I restarted Apache and navigated to :
http://10.11.1.157/test.jay
but I got a file not found error. Could anyone suggest what I am doing wrong? Any suggestions are appreciated. Thanks much.