🚀 DevOps Certified Professional
📅 Starting: 1st of Every Month 🤝 +91 8409492687 | 🤝 +1 (469) 756-6329 🔍 Contact@DevOpsSchool.com

How to Create Virtual Host for Laravel Project on Xampp in Windows 10.

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

To create a virtual host for a Laravel project on Xappp in Windows 10, two changes must be made. Simply take the following actions:

Step 1: Open the httpd-vhosts.conf file in the xamppapacheconfextra directory. See the Image Below:

Step 2: Simply copy and paste the code below, making sure to include the URL for your project directory and to include the word “public” if your Laravel project is running on a public folder.

DocumentRoot.

<VirtualHost *:80>
    
    DocumentRoot "C:/xampp/htdocs/bheekho"
    ServerName bheekho.com
    
</VirtualHost>

Step 3:- Now, go to C:\Windows\System32\drivers\etc and open host file. See the Below Image:-

Step 4:- Now Open and edit the hosts file and write your url of the project where mine is, as seen below image:-

Subscribe
Notify of
guest


This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x