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

I configured a WebDAV server using Apache. Here is my configuration:

DAVLockDB /var/www/DAVLock.db

<Location /majid>
    AllowOverride None
    Options +Indexes
    DAV On
    AuthUserFile /var/www/users.db
    AuthName Authentication
    AuthType Basic
        Require user majid

Alias /majid /var/www/dav/majid

/var/www/DAVLock.db is owned by apache user and group. I can access WebDAV share via browser. I have configured a WebFolder in Windows XP SP3. But I can't create file and folders. error_log file says:

[Tue Oct 11 17:05:12 2011] [error] [client] File does not exist: /var/www/dav/majid/New Folder
[Tue Oct 11 17:05:12 2011] [error] [client] The locks could not be queried for verification against a possible "If:" header.  [500, #0]
[Tue Oct 11 17:05:12 2011] [error] [client] Could not open the lock database.  [500, #400]
[Tue Oct 11 17:05:12 2011] [error] [client] (13)Permission denied: Could not open property database.  [500, #1]

Can anyone help? Another question is: Do we need Options +Indexes for WebDAV clients to list files and folders or it is only for web access using browser?

share|improve this question
ls -ld /var/www/? –  quanta Oct 11 '11 at 16:08
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/ –  Majid Azimi Oct 11 '11 at 17:03

2 Answers 2

up vote 3 down vote accepted
ls -ld /var/www/
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/

chown -R apache:apache /var/www/, undo your change and try again.

share|improve this answer

I removed this line:

DAVLockDB /var/www/DAVLock.db

and use the default configuration of Apache:

<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb

It is now working perfectly. But I don't know the reason yet.

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.