How we can create virtual host in ubuntu apache?

virtual host in ubuntu apache

Today now in this post i will show you How we can create virtual host in ubuntu apache? we are always like to create the virtual host and run our project on that way we can debug our project properly and also run as like our website. But if we are working on ubuntu then we have always follow the several step to create virtual host and that very long process.

So just follow bellow step:

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

Read Also : How to Create Middleware with Parameters in Laravel?

Thanks for read. I hope it help you. For more you can follow us on facebook

About Md. Mostofa Kamal

My name is Md. Mostofa Kamal. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help other developers. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS, and Bootstrap from the early stage.

View all posts by Md. Mostofa Kamal →