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

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

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>Code language: HTML, XML (xml)

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