Years ago, I developed PHP in Windows using IIS (Internet Information Services) as web server. I had no problem to setup virtual directories under IIS because I could just right click the web server and click Add Virtual Directory.
However now I am using Apache in Windows XP, I need to configure the virtual directory manually by editing httpd.conf file. The reason why I want to setup virtual directories is because I want to concentrate my projects code in drive D:\ instead of C:\inetpub\wwwroot\ or C:\xampp\.
After searching Google and read few websites, I have my answer on how to configure virtual directories, here is code to be added in to my httpd.conf file:
Alias /krova "D:\projects\krova" <Directory "D:\projects\krova"> DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride None order allow,deny allow from all </Directory>
After restarted my Apache server, and pointed my browser to http://localhost/krova/, it works!