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.
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.
Introduction In the world of web development, selecting the correct framework is critical. Laravel and…
Introduction By enabling containerization, Docker has transformed the way software is built, deployed, and managed.…
Introduction Speed and efficiency are critical in the ever-changing world of web development. Effective caching…
Introduction Git, a popular version control system in software development, enables developers to track changes,…
Introduction Are you tired of grappling with tangled changes and unfinished work while using Git?…
Introduction Version control is essential in software development because it ensures that changes to a…