Quick setup:
<VirtualHost my.virtual.host:80> ServerAdmin admins@email DocumentRoot /var/www/htdocs/my.virtual.host ServerName my.virtual.host ErrorLog logs/my.virtual.host-error_log CustomLog logs/my.virtual.host-access_log combined </VirtualHost> DavLockDB /davlockdb/DavLock <Directory /var/www/htdocs/my.virtual.host> DAV On AuthType Basic AuthName "Webdav access" AuthUserFile /var/www/conf/passwd AllowOverride None Require valid-user Options Indexes None <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> </Limit> </Directory>Now restart your webserver.
Change the permissions, path etc. so it fits your need. It's also possible to put the directory configuration inside the virtualhost configuration. If you use SSL it will make more sence if you have it outside. At least when you want to forward all http requests to https.
Another way could be using LD_PRELOAD while starting Apache. Haven't tested it yet. How to do it you can find on this page.