Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .