We will learn How to create quick apache virtual host in Ubuntu

Install Script:

$ cd /usr/local/bin
$ wget -O virtualhost https://raw.githubusercontent.com/RoverWire/virtualhost/master/virtualhost.sh
$ chmod +x virtualhost
wget -O virtualhost-nginx https://raw.githubusercontent.com/RoverWire/virtualhost/master/virtualhost-nginx.sh
$ chmod +x virtualhost-nginx

Maybe you require to use sudo for admin permission issue.

Virtual Host Create Syntax:

sudo virtualhost create domain_name directory_path

Virtual Host Create Example:

sudo virtualhost create blog.dev /var/www/blog/public

May this example help you..