How we can create 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
$ chmod +x virtualhost

$ wget -O virtualhost-nginx

$ chmod +x virtualhost-nginx
Use virtualhost command
sudo virtualhost create 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 Shahriar Sagor

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

View all posts by Shahriar Sagor →