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

After having enabled WebDav on an Apache httpd 2.2, i want to give access to a specific directory (that has not to do with other sites managed by httpd).
What is the smallest set of entries to do this?

share|improve this question
up vote 0 down vote accepted

The docs suggest something like this would get you started under the default virtual host, once you have installed the module

DavLockDB /usr/local/apache2/var/DavLock

Alias /foo /home/my/files/directory
<Location /foo>
Dav On

AuthType Basic
AuthName DAV
AuthUserFile user.passwd

<LimitExcept GET OPTIONS>
require user admin
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.