How To Setup Virtual Hosts Using XAMPP

xamppp

  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
    </VirtualHost>
  3. Open file hosts present in “C:/Windows/System32/drivers/etc” using auth as admin and add this line
  4. 127.0.0.1 localhost
    127.0.0.1 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 *