From: André Malo Date: Wed, 26 May 2004 21:56:28 +0000 (+0000) Subject: add initial documentation for mod_dav_lock. X-Git-Tag: pre_ajp_proxy~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03d7a01c27a32e2259de82c21a6aa864cb663c8c;p=apache add initial documentation for mod_dav_lock. Mostly taken from the initial cvs commit message and mod_dav_fs docs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103782 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_dav_lock.xml b/docs/manual/mod/mod_dav_lock.xml new file mode 100644 index 0000000000..5a3065344c --- /dev/null +++ b/docs/manual/mod/mod_dav_lock.xml @@ -0,0 +1,91 @@ + + + + + + + + + +mod_dav_lock +generic locking module for mod_dav +Extension +mod_dav_lock.c +dav_lock_module +Available in version 2.1 and later + + +

This module implements a generic locking API which can be used by any + backend provider of mod_dav. It requires at least + the service of mod_dav. But without a backend provider + which makes use of it, it's useless and should not be loaded into the + server. A sample backend module which actually utilizes + mod_dav_lock, is mod_dav_svn, the subversion provider module.

+ +

Note that mod_dav_fs does not need this + generic locking module, because it uses it's own more specialized + version.

+ +

In order to make mod_dav_lock functional, you just have + to specify the location of the lock database using the DavGenericLockDB directive described + below.

+ + Developer's Note +

In order to retrieve the pointer to the locking provider function, you + have to use the ap_lookup_provider API with the arguments + dav-lock, generic and 0.

+
+
+mod_dav + + +DavGenericLockDB +Location of the DAV lock database +DavGenericLockDB file-path +server configvirtual host +directory + + + +

Use the DavGenericLockDB directive to specify + the full path to the lock database, excluding an extension. If + the path is not absolute, it will be taken relative to ServerRoot. The implementation of + mod_dav_lock uses a SDBM database to track user + locks.

+ + Example + DavGenericLockDB var/DavLock + + +

The directory containing the lock database file must be + writable by the User + and Group under which + Apache is running. For security reasons, you should create a + directory for this purpose rather than changing the permissions on + an existing directory. In the above example, Apache will create + files in the var/ directory under the ServerRoot with the base filename + DavLock and extension name chosen by the server.

+ +
+
+ +
+