Make XAMPP/Apache serve file outside of htdocs
Author :
mohit
Blog :Mohit Kumar
Date: 7/10/2012 2:24:22 PM
If you use XAMPP for development, you have to use the htdocs folder to store your production/development files. If you want to map any other folder to use as a development path, you can just do the following settings.
Edit the value of DocumentRoot setting in XAMPP\apache\conf\httpd.conf.
It should currently be:
C:/xampp/htdocs
Change it to the folder you wish
C:/Users/mohit/www
Don’t forget to edit it in BOTH lines that ask for DocumentRoot. If you only change the top one, you’ll get read-access errors.