How to change default Project Workspace in Apache?

I wanted to keep all the project files at a central place and be able to view them at http://localhost/projectName. This I wanted to do for different projects for PHP and Flex. This would help keep all the projects' files at a central location irrespective of technology etc. That can be handy for backup prupose.

I have below softwares installed in my Vista machine.

C:\eclipse
C:\xampp

I already have Eclipse and PHPEclipse installed. So, I am able to start/stop XAMPP from Eclipse itself. Howerver, http://localhost/projectName was pointing to C:\xampp\htdocs\projectName. That is what I wanted to change.

Here is all I had to do. I made below changes in C:\xampp\apache\conf\httpd.conf

Comment the default Document Root.
#DocumentRoot "/xampp/htdocs"

Change the document root to where you want to keep all your files. For example
DocumentRoot "F:\folder-name\workspace"

Then I stopped and started XAMPP again to get the above settings working. That did not let me get started though. When I tried to access my project at http://localhost/projectName it gave me 'Access Forbidden' error message.

That required one more change. I changed below tag in C:\xampp\apache\conf\httpd.conf. Modified the line <Directory "/xampp/htdocs"> to <Directory "F:\gaurav-goel\workspace">. All other code inside <Directory "/xampp/htdocs"></Directory> remains untouched. This apparently solved all my current problems :-)