Site Overlay

Virtual Host On XAMPP

Let’s setup .test virtual host.

Go to F:\xampp\apache\conf\extra and open httpd-vhosts.conf file and add the following lines.

DocumentRoot “F:/xampp/htdocs/new_project/public” ServerName newproject.test

Open the file C:\Windows\System32\drivers\etc and open hosts file and add your Servername.

localhost name resolution is handled within DNS itself.

127.0.0.1 localhost

::1 localhost

127.0.0.1 newproject.test

Restart the Apache and Open newproject.test in browser.

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2020 Sugat Shrestha. All Rights Reserved. | Catch Vogue by Catch Themes