Monday, May 7, 2012

Serve Files Outside of Apache Server's DocumentRoot

If you have an Apache server and you find it would be really handy to server files outside of the DocumentRoot (usually htdocs) then here is a little snippet to help. In my XAMPP installation I put this inside the <IfModule alias_module> element.


With a server restart your docs are now available with your /mydocs alias (i.e. http://localhost/mydocs/mydoc.txt)

No comments:

Post a Comment