Create Virtual Host Create virtual host with single command on Ubuntu. Usage Required sudo to run sudo sh vhost.sh {name} {path_dir} sudo sh vhost.sh example.com /var/www/html/example