I have F16 on a notebook that I'm setting up for web development. LAMP is running but I'm having difficulty setting up virtual hosts for each of the different projects I am working on.
It seems that each name points to the same docroot.
should point to /var/www/html/ Where I've added an index.html file with a heading to indicate it's location.
should point to /var/www/html/test where I've added a different index.html file to indicate it's location.
However, when I access the test.dev domain in the browser I receive the /var/www/html/index.html file. I've tried setting up others but they all point to the html folder rather than the documentroot.
I have uncommented:
and at the bottom of the file I've added:
In /etc/hosts I've added the following at the bottom of the file:
Can you help me to resolve this?
Also I've read that it's better to establish dev environments in workspace rather than /var/www/html. Thoughts?