Create virtual host in one go...
Check hosts file has the appropriate permission, if not then run
chown "$USER":"$USER" /etc/hosts
- run the script
bash vshot
The script will ask you about two things
- The virtual-host name
- The root directory
In my case i've created a alias named vhost and here's the sample
alias vhost="/home/devnet/mine/bash/vhost.sh"