This may a bit off topic but I can't find a good place to post my question. Can I serve files from my D: drive (hard disk) if my root is on the C: drive? I think IIS lets you create "virtual folders" that point to places outside the root but act as though they are in the root. Is it possible to do this in apache? Thank you.
Yes, IIS can do what you are asking about. Just create a virtual directory and point it at d:\whatever\directory\you\want.
-- Michael Darkstreak Computing & Innovations www.darkstreak.com
I know how to do it in IIS but i have no clue what steps to take to do it in Apache. I would imagine it would be in the httpd.conf file but i searched the entire file for the word "virtual" and all i got was stuff about "virtual domains".
(Thanks for the quick response)
Read the apache manual about 'alias' in the runtime configuration directives.
Not sure if that will work with windows' C: and D:, but worth a try.
Sure thing, do this:
alias /data/ d:\somedirectory
Alias /whatever/ "d:/your/directory/path/"
<Directory "d:/your/directory/path/"> (any Options or access control settings go here) </Directory>
Hey thanks everyone. It worked, no problem. I didn't realize that they used the term "alias" in apache instead of "virtual". Still new to this web deal. Learnin' fast though!
Newbies should read manuals :-)
http://httpd.apache.org/docs/mod/directives.html http://httpd.apache.org/docs/mod/core.html