We will learn How to create virtual host in ubuntu apache?
Create virtualhost command
$ 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
Use virtualhost command
sudo virtualhost create myexample.dev my_dir_path
May this help you.