How to Create Virtual Host in Laravel

In this tutorial I’m going to create multiple virtual host in laravel in some easy steps please follow mentioned below.

first stop your xampp πŸ‘‡

1step-> Go to


ds-admin-ms is your project folder name


2nd step go to


3rd step Open this file -> httpd-vhosts.conf

4th step Copy below code πŸ‘‡πŸ‘‡

<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\ds-admin-ms\public"
ServerName ds-admin-ms
ServerAlias ds-admin-ms
<Directory "c:/xampp/htdocs/ds-admin-ms/public">
Order allow,deny
Allow from all

Next step go to


Open this file -> hosts

Simply copy below code πŸ‘‡ 		ds-admin-ms

Paste here in C:\Windows\System32\drivers\etc and open this file πŸ‘‰ hosts

Lets go to xampp and start run

and go to folder -> C:\xampp\htdocs\ds-admin-ms

and open terminal and run

php artisan serve

Next go to browser and paste this


Tagged : / / /

How to create virtual local host setup in Laravel

In this tutorial I’m going to describe how to set up virtual host in Laravel. Please follow this Tutorial and you able to create successfully virtual host in Laravel

1. Go to C drive and Go to this Directory-> C:\xampp\apache\conf\extra and open httpd-vhosts name of folder


Open this folder -> httpd-vhosts

2nd Step Copy Below Code


<VirtualHost *:80>

DocumentRoot β€œC:/xampp/htdocs/blog/public”

ServerName localhost


<VirtualHost *:80>

DocumentRoot β€œC:/xampp/htdocs/blog/public”




and paste simply there in this folder -> httpd-vhosts

3rd Step go to windows C:\Windows\System32\drivers\etc and open hosts folder

4th step simply copy this

πŸ‘‡ localhost

And paste this folder


After stop your xampp apache server and start then

And start then Xampp Apache server

And run now you can see localhost set up is done.

Thanks …… πŸ™‚

Tagged : / / / /