how to make virtual directory in xampp?

By December 21, 2011 PHP
 C:xamppapacheconfextrahttpd-vhosts.conf

Add following code in end.

 <VirtualHost *>
    DocumentRoot “D:wwwfoldername”
    ServerName local.sitename
        <Directory “D:wwwfoldername”>
        Order allow,deny
        Allow from all
    </Directory>
  </VirtualHost>

C:WINDOWSsystem32driversetchosts

127.0.0.1       local.newsite

Leave a Reply

95 − = 85