Easily create virtual hosts in apache using this script.
USAGE
- Clone the repo.
- Execute the gen-virtual file.
$ git clone https://github.com/pushkar-anand/apache-virtualhost-generator.git
$ cd apache-virtualhost-generator
$ chmod +x gen-virtual
$ ./gen-virtual
Make sure have php installed in your machine.
To add the script for global access run
$ sudo ln -s /path/to/apache-virtualhost-generator/gen-virtual /usr/bin/gen-virtual