This is a batch script to create a virtualhost by just passing the domain or subdomain name
The script asks you for a domain and subdomain name, create a directory using the same domain or subdomain name in /var/www folder and creates a virtualhost with that configuration.
- Download or clone the script
- type chmod +x virtual_host.sh
- Run by typping ./virtual_host.sh
This script has been tested on Ubuntu 14.04 on AWS EC2