What do you usually go to create a virtual host? If I am right, then you will copy the default file, change the contents, add entry in host file and then you will enable the site, right? Well, if you are thorough with the above steps, then I would advise you not to waste your time any more by repeating the steps each time you need to create a virtual host, because I am going to provide you a script using which you can easily create a virtual host.