How we can create virtual host in ubuntu apache?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

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 code chef

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 code chef →