Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a directory containing files: /Users/Dave/MyFolder/

How would I configure Apache so I can access files in it, specifically with this root URL: http://127.0.0.1/Users/Dave/MyFolder/...

I understand permissions on files must allow everyone read-access. This is a one-off directory (e.g. I don't want to break what's already at /var/www/).

share|improve this question
    
Users directory not being under /var/www in this case? –  random Jul 16 '11 at 21:34
    
Yes, you're correct. :) –  Dave Gallagher Jul 16 '11 at 22:12

1 Answer 1

up vote 4 down vote accepted

Use mod_alias and the Alias directive - full details at http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias, but basically Alias /http/path /fs/path

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.