©
This document usesPHP Chinese website manualRelease
| 说明 | 为mod_dav锁定服务器上的文件提供支持 |
|---|---|
| 状态 | 扩展(E) |
| 模块名 | dav_lock_module |
| 源文件 | mod_dav_lock.c |
| 兼容性 | 仅在 Apache 2.1 及以后的版本中可用 |
This module implements a generic locking API which can be used by any backend provider ofmod_dav. Itrequiresat least the service ofmod_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 utilizesmod_dav_lock, is mod_dav_svn, the subversion provider module.
Note thatmod_dav_fsdoesnotneed this generic locking module, because it uses it's own more specialized version.
In order to makemod_dav_lockfunctional, you just have to specify the location of the lock database using theDavGenericLockDBdirective described below.
In order to retrieve the pointer to the locking provider function, you have to use theap_lookup_providerAPI with the argumentsdav-lock,generic和0.
| 说明 | Location of the DAV lock database |
|---|---|
| 语法 | DavGenericLockDBfile-path |
| 作用域 | server config, virtual host, directory |
| 状态 | 扩展(E) |
| 模块 | mod_dav_lock |
Use theDavGenericLockDBdirective to specify the full path to the lock database, excluding an extension. If the path is not absolute, it will be taken relative toServerRoot. The implementation ofmod_dav_lockuses a SDBM database to track user locks.
DavGenericLockDB var/DavLock
The directory containing the lock database file must be writable by theUser和Groupunder 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 thevar/directory under theServerRootwith the base filenameDavLockand extension name chosen by the server.