
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