WordPress

How to setup virtual host in XAMPP on Windows 10

In This Article, we will learn how setup virtual host in XAMPP server On windows 10 by following steps.

Step 1 : Go to XAMPP’s apache directory then navigate to conf\extra named folder

C:\xampp\apache\conf\extra

Step 2: Open httpd-vhosts.conf file and paste your expected virtual host URL

<VirtualHost *:80>
  ServerAdmin webmaster@localhost.com
  DocumentRoot c:\xampp\htdocs\developerdiary.in   
  ServerName localhost.developerdiary.in
</VirtualHost>

Wait don’t close still we are pending one more steps

Step 3 : Go to notepad RUN AS A ADMINISTRATOR

Step 4: Got to File and Open path C:\Windows\System32\drivers\etc and find file hosts and open it.

Now we just have to enter our host entry in the hosts file at end of the file save and close

127.0.0.1 localhost.developerdiary.in

Last step open your Apache or XAMPP server and restart your server and we finish.

Conclusion

Hope this article will help you how to create Virtual host on your localhost very easy steps. If any confusion or feedback please comment we are happy to help or reply here.

Know more about wordPress

  1. How to install gulp4
  2. Upgrade MySQL 5.7 to 8. on Ubuntu very easy step
  3. Why all sites now require SSL (https)
  4. Why We Need WordPress Website Backup and Restore
  5. The Importance of WordPress Website Security
Developer Diary

Share
Published by
Developer Diary
Tags: Tips

Recent Posts

Git Tag Cheat Sheet

Introduction Git tags are an essential feature of version control systems, offering a simple way…

2 months ago

Understanding Web Storage: Cookies, Local Storage

Introduction The methods that browsers employ to store data on a user's device are referred…

3 months ago

Setting up OpenVPN Access Server in Amazon VPC – AWS

Introduction A well-known open-source VPN technology, OpenVPN provides strong protection for both people and businesses.…

3 months ago

Enhance Error Tracking & Monitoring: Integrate Sentry with Node.js & Express.js

Introduction Integrating Sentry into a Node.js, Express.js, and MongoDB backend project significantly enhances error tracking…

3 months ago

Comparing Callbacks, Promises, and Async/Await in JavaScript

Introduction In the world of JavaScript development, efficiently managing asynchronous operations is essential. Asynchronous programming…

5 months ago

How To Secure Nginx with Let’s Encrypt on Ubuntu EC2 Instance

Introduction Let's Encrypt is a Certificate Authority (CA) that makes it simple to obtain and…

7 months ago