Installation
Apache has a module for web dav, compile it as a dynamic shared object:
cd mod_dav
./configure --with-apxs=/where/is/apache/bin/apxs
DAV is done !!
Configuration
An example:
In apache's configuration file:
#
# Settings for WebDAV Server
#
DAVLockDB /where/the/lock/goes/to/DAVLock
DAVMinTimeout 600
DAVDepthInfinity On
DAV On
AllowOverride AuthConfig
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /where/is/webusers
Require valid-user
Now you need to create a password entry for a webserver user:
htpasswd -c webusers adavuser
Where webusers is the webserver users file.
In the .htaccess write
AuthName "DAV Restricted"
AuthType Basic
AuthUserFile /where/is/webusers
require valid-user
I haven't still understood the requirements of each DAV Client in terms of requests tags (HEAD,OPTIONS...).