These features allow an apache server to support WebDAV extensions to the HTTP protocol as indicated by RFC2518.
Install the package containing the dav module using:
apt-get install libapache-mod-dav
will make the following changes to the configuration file http.conf:
LoadModule dav_module /usr/lib/apache/1.3/libdav.so
# Added for mod_dav
<IfModule mod_dav.c\>
DAVLockDB /var/lock/DAV/DAVLock
</IfModule\>
This directive tells the module dav to use the file indicated to keep track of files that are locked by users in order to ensure exclusive access via the command.
You can also specify a timeout for the lock of a file in seconds:
DAVMinTimeout 600
to enable the WebDav functionality you must add to the tag IfModule the following lines:
<Location /dav/ >
DAV On
AuthType Basic
AuthName "WebDAV Restricted"
AuthUserFile /export/http/webs/pri.mcslp/dav/.DAVlogin
<LimitExcept GET HEAD OPTIONS>
Require user webdav
</LimitExcept>
</Location>
in the file /export/http/webs/pri.mcslp/dav/.DAVlogin will be given apache users, not system, that can authenticate to access the functionality.
To create this file, proceed as follows :
mkdir -p /export/http/webs/pri.mcslp/dav
chown www-data.www-data /export/http/webs/pri.mcslp/dav
chmod 775 /export/http/webs/pri.mcslp/dav
htpasswd -c /export/http/webs/pri.mcslp/dav/.DAVlogin webdav
will be asked to enter a password for authentication.
With the form of authentication Basic the credentials are easily decipherable, to use authentication systems more secure you should refer to other articles that describe how to enable Kerberos.
After creating the dav directory under the main root of the site will have to run the following command:
apachectl restart
