Apache 2.0手册中文版翻译项目

项目说明 | 项目进度 | 项目讨论区 | Apache手册中文版

 


mod_dav - Apache HTTP服务器
<-
Apache主站 > HTTP服务器 > 文档 > 2.0版本 > 模块索引

Apache模块 mod_dav


现有的语种:  en  |  ja  |  ko 

说明:Distributed Authoring and Versioning (WebDAV) functionality
状态:Extension
模块名:dav_module
源文件:mod_dav.c

概要

This module provides class 1 and class 2 WebDAV ('Web-based Distributed Authoring and Versioning') functionality for Apache. This extension to the HTTP protocol allows creating, moving, copying, and deleting resources and collections on a remote web server.

指令索引

主题

参见

top

Enabling WebDAV

To enable mod_dav, add the following to a container in your httpd.conf file:

Dav On

This enables the DAV file system provider, which is implemented by the mod_dav_fs module. Therefore that module has to be compiled into the server or has to be loaded at runtime using the LoadModule directive.

In order to make it work you have to specify a web-server writable filename for the DAV lock database by adding the following to the global section in your httpd.conf file:

DavLockDB /tmp/DavLock

You may wish to add a <Limit> clause inside the <Location> directive to limit access to DAV-enabled locations. If you want to set the maximum amount of bytes that a DAV client can send at one request, you have to use the LimitXMLRequestBody directive. The "normal" LimitRequestBody directive has no effect on DAV requests.

Full Example

DavLockDB /tmp/DavLock

<Location /foo>
Dav On

AuthType Basic
AuthName DAV
AuthUserFile user.passwd

<LimitExcept GET HEAD OPTIONS>
require user admin
</LimitExcept>
</Location>

Security

The use of HTTP Basic Authentication is not recommended. You should use at least HTTP Digest Authentication, which is provided by the mod_auth_digest module. Nearly all WebDAV clients support this authentication method. Of course, Basic Authentication over an SSL enabled connection is secure, too.

top

Dav 指令

说明:Enable WebDAV HTTP methods
语法:Dav On|Off|provider-name
默认值:Dav Off
上下文:目录
状态:Extension
模块:mod_dav

Use the Dav directive to enable the WebDAV HTTP methods for the given container:

<Location /foo>
Dav On
</Location>

The value On is actually an alias for the default provider filesystem which is served by the mod_dav_fs module. Note, that once you have DAV enabled for some location, it cannot be disabled for sublocations. For a complete configuration example have a look at the section above.

Do not enable WebDAV until you have secured your server. Otherwise everyone will be able to distribute files on your system.
top

DavDepthInfinity 指令

说明:Allow PROPFIND, Depth: Infinity requests
语法:DavDepthInfinity on|off
默认值:DavDepthInfinity off
上下文:服务器配置, 虚拟主机, 目录
状态:Extension
模块:mod_dav

Use the DavDepthInfinity directive to allow the processing of PROPFIND requests containing the header 'Depth: Infinity'. Because this type of request could constitute a denial-of-service attack, by default it is not allowed.

top

DavMinTimeout 指令

说明:Minimum amount of time the server holds a lock on a DAV resource
语法:DavMinTimeout seconds
默认值:DavMinTimeout 0
上下文:服务器配置, 虚拟主机, 目录
状态:Extension
模块:mod_dav

When a client requests a DAV resource lock, it can also specify a time when the lock will be automatically removed by the server. This value is only a request, and the server can ignore it or inform the client of an arbitrary value.

Use the DavMinTimeout directive to specify, in seconds, the minimum lock timeout to return to a client. Microsoft Web Folders defaults to a timeout of 120 seconds; the DavMinTimeout can override this to a higher value (like 600 seconds) to reduce the chance of the client losing the lock due to network latency.

Example

<Location /MSWord>
DavMinTimeout 600
</Location>

现有的语种:  en  |  ja  |  ko 

 


项目维护者: kajaa

项目说明 | 项目进度 | 项目讨论区 | Apache手册中文版