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 👇
![](https://miro.medium.com/max/2720/1*camhH70j6H3HXkQRKo6RZw.png)
1step-> Go to
C:\xampp\htdocs
ds-admin-ms is your project folder name
ds-admin-ms
![](https://miro.medium.com/max/1008/1*s6fKDvbI7h7k0n2jIln7yw.png)
2nd step go to
C:\xampp\apache\conf\extra
![](https://miro.medium.com/max/1028/1*f7jzBBiR2zor55Xg9byMUA.png)
3rd step Open this file -> httpd-vhosts.conf
![](https://miro.medium.com/max/1210/1*E-6Alz0E9VROnEXxiOYgLg.png)
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
</Directory>
</VirtualHost>
![](https://miro.medium.com/max/1366/1*RmVtKv9vuknDW4KspI5-Tg.png)
![](https://miro.medium.com/max/1366/1*onCmom3WKY1rXpf86_Oorg.png)
Next step go to
C:\Windows\System32\drivers\etc
Open this file -> hosts
![](https://miro.medium.com/max/1118/1*rVHXIV_EuMuZ-7PJbiXJSQ.png)
Simply copy below code 👇
127.0.0.1 ds-admin-ms
::1
Paste here in C:\Windows\System32\drivers\etc and open this file 👉 hosts
![](https://miro.medium.com/max/1366/1*hezfZM4WRk7wQpuuDt9ppA.png)
Lets go to xampp and start run
![](https://miro.medium.com/max/2720/1*jmSBxmett4_shyDvOe_T1g.png)
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
http://ds-admin-ms/
![](https://miro.medium.com/max/2720/1*cTwgWXvwzs9l92IGQt8KwQ.png)