Make XAMPP / Apache serve file outside of htdocs folder [closed]

Is it possible to configure xampp to serve up a file outside of the htdocs directory?

For instance, say I have a file located as follows:

C:\projects\transitCalculator\trunk\TransitCalculator.php

and my xampp files are normally served out from:

C:\xampp\htdocs\

(because that’s the default configuration) Is there some way to make Apache recognize and serve up my TransitCalculator.php file without moving it under htdocs? Preferably I’d like Apache to serve up/have access to the entire contents of the projects directory, and I don’t want to move the projects directory under htdocs.

edit: edited to add Apache to the question title to make Q/A more “searchable”

6 Answers
6

Leave a Comment