How To Setup Virtual Hosts Using XAMPP


  1. Open this file httpd-vhosts.conf present in C:/xampp/apache/config/extra/
  2. add this code, sample :- NameVirtualHost *:80
    <VirtualHost *:80>
    DocumentRoot “d:/websites/sassnew/”
    ServerName sassnew
  3. Open file hosts present in “C:/Windows/System32/drivers/etc” using auth as admin and add this line
  4. localhost sassnew
  5. Now restart apache and you can use now sassnew/

I guess this will help you.

Leave a Reply

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