Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
add comment

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.