You cannot enter Pathnames like "c:/folder/scipt.php" into your Browser, because the Browser will open the corresponding file directly from disk, instead of requesting it from the local Apache. Instead you must enter a valid URL which usually starts with the "protocoll" http: and is followed by two slashes and a valid servername (i.e. Domainname), in your case the "localhost", which yields to the locally installed Apache:
http://localhost (for example).
In the configuration file httdp.conf you have to supply a "DocumentRoot", this is the default pathname, where you have to install your scripts and files, if you want to request these via Apache. If you enter
http://localhost/myfile.html (for example)
Apache will fullfill this request by loading myfile.html from c:/xampp/htdocs, that is because the above mentioned "DocumentRoot" has been assigned to c:/xampp/htdocs in your httdp.conf file (you may edit this file and see the configuration).
You also may supply subfolder to the URL, like
http://localhost/myfolder/myfile.html, this will result in c:/xampp/htdocs/myfolder/myfile.html
And that is the point, where your problem begins: your own folder c:/somewhere is out of the scope of the DocumentRoot - anyway what you enter into the Browser, it is impossible to reach this folder c:/somewhere, because you cannot enter this Path into the Browser (as mentioned above, then the files are not delivered by Apache) and if your enter
http://localhost/blablabla, all files will be expected beyond c:/xampp/htdocs.
But: there is a simple solution for that and it is called ALIAS. "ALIAS" is a configuration directive similar to DocumentRoot, you have to enter it in httpd.conf and it has a similar meaning like DocumentRoot. The big difference: there is only one DocumentRoot per Domain, but you may have as many ALIAS as you want. How does it work? The syntax of ALIAS is very simple, I will give an example:
ALIAS /myalias c:/myfolder
This defines the ALIAS "/myalias" which yields to c:/myfolder
If you enter now http:/localhost/myalias/myfile.html into your browser, Apache recognizes the Alias /myalias in your URL, and therefore the file myfile.html is NOT delivered from c:/xampp/htdocs/myalias (what would be the case without this ALIAS), but instead it is delivered from c:/myfolder
You got the trick? Because thats all you need. You may define your own ALIAS (and call it whatever you want, for example "/somewhere" and define it for your folder c:/somewhere):
ALIAS /somewhere c:/somewhere
Restart Apache (dont forget to do so every time you change the configuration!) and then simply enter
http://localhost/somewhere/index.hmtlinto your browser and the index.html from c:/somewhere will be delivered (and not from c:/xampp/htdocs/somewhere). Or, like in your case, you may also supply a path containing several subfolders:
Alias /somewhere c:/somefolder/anotherfolder/thefolderiwanttouse
This matches
http://localhost/somewhere to c:/somefolder/anotherfolder/thefolderiwanttouse
Attention: if your Path contains any spaces, you must supply the pathname with double quotes in httpd.conf:
Alias /somewhere "c:/one of my folders/another folder/and yet another folder"
If you miss that, Apache wont start.
For full explanation and documentation see:
http://httpd.apache.org/docs/2.2/mod/mo ... html#alias