I want to create virtual hosts on ubuntu. I am using ubuntu and apache server.
For example I have two files like this:
I want that when I use project1.dev in browser then it should point /var/www/project1/index.php
If I use project2.dev in browser then it should point /var/www/project2/index.php
I have tried some articles but there are lot of information and I am unable to run it. I am new to ubuntu, Can someone tell me exact points and commands?