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?

  • i want to keep /files directory outside of the server root for security reasons – fat Dec 15 '11 at 12:24

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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