I want to create virtual hosts on ubuntu. I am using ubuntu and apache server.
For example I have two files like this:
/var/www/project1/index.php
/var/www/project2/index.php
I want that when I use project1.dev in browser then it should point /var/www/project1/index.php
And
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?
Thanks