Server Fault is a question and answer site for system and network administrators. 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

My team has a web application running on apache2 that allows us to download and upload files.

The document root is /var/www/html.

Obviously we don't want anybody to see our work papers, so we created a /files directory (inside the root of the filesystem) The web application uploads files to that directory and download stuff from there.

What we want now, is to get webdav access to the /files directory, but with apache i was only able to set webdav access for directories inside the document root.

<Location /files>
Dav On
AuthType Basic
AuthName "login please"
AuthUSerFIle /var/www/passwd/passwords
Require valid-users

But this directive looks for a directory named files inside the document root

Is it possible to do that outside?

share|improve this question
i want to keep /files directory outside of the server root for security reasons – fatmatto Dec 15 '11 at 12:24
up vote 0 down vote accepted

You may need to use the <directory /path/to/files> directive instead of <location>.

share|improve this answer

Your Answer


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.