mod_dav.html revision 1997e02bed99bd0c081962ade257a0ea12ebe15b
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<HTML>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<HEAD>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<TITLE>Apache module mod_dav</TITLE>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen</HEAD>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<BODY
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen BGCOLOR="#FFFFFF"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen TEXT="#000000"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen LINK="#0000FF"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen VLINK="#000080"
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen ALINK="#FF0000"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<!--#include virtual="header.html" -->
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<H1 ALIGN="CENTER">Module mod_dav</H1>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<p>This module provides Distributed Authoring and Versioning
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen(<a href="http://www.webdav.org/">WebDAV</a>) functionality.</p>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<A
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo SirainenHREF="module-dict.html#Status"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenREL="Help"
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen><STRONG>Status:</STRONG></A> Extension
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<BR>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<A
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo SirainenHREF="module-dict.html#SourceFile"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenREL="Help"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen><STRONG>Source File:</STRONG></A> mod_dav.c
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<BR>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<A
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenHREF="module-dict.html#ModuleIdentifier"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenREL="Help"
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen><STRONG>Module Identifier:</STRONG></A> dav_module
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<h2>Summary</h2>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<p>This module provides class 1 and class 2
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<A HREF="http://www.webdav.org">WebDAV</A> ('Web-based
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenDistributed Authoring and Versioning') functionality for Apache.
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenThis extension to the HTTP protocol allows creating, moving,
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainencopying, and deleting resources and collections on a remote web
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenserver.</p>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<P>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo SirainenTo enable mod_dav, add the following to a container in your <CODE>httpd.conf</CODE> file:</P>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<blockquote>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<CODE>Dav On</CODE>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen</blockquote>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<p>Also, specify a valid filename for the DAV lock database by adding
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainenthe following to the global section in your <CODE>httpd.conf</CODE>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainenfile:</p>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<blockquote>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<CODE>DavLockDB /tmp/DavLock&nbsp;&nbsp;&nbsp;&nbsp;</CODE><EM>(Any web-server writeable filename, without an extension)</EM>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen</blockquote>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<H2>Directives</H2>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<UL>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<LI><A HREF="#DAV">Dav</A>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<LI><A HREF="#DAVLockDB">DavLockDB</A>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<LI><A HREF="#DAVMinTimeout">DavMinTimeout</A>
7dc4bf28c0c4c673a198070edd1ed54e14ae39aeTimo Sirainen<LI><A HREF="#DAVDepthInfinity">DavDepthInfinity</A>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen</UL>
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen
088cb24027234024aff2c1ce5b6870c5a308a44bTimo Sirainen<HR>
<H2><A NAME="DAV">Dav</A></H2>
<A
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> Dav on|off<BR>
<A
HREF="directive-dict.html#Default"
REL="Help"
><STRONG>Default:</STRONG></A>
<CODE>Dav off</CODE><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Context:</STRONG></A> directory<BR>
<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> extension<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_dav<BR>
<A
HREF="directive-dict.html#Compatibility"
REL="Help"
><STRONG>Compatibility:</STRONG></A> Apache 1.3.4 and above
<p>Use the <CODE>Dav</CODE> directive to enable the WebDAV HTTP methods
for the given container.
You may wish to add a
<A
HREF="core.html#limit"
>&lt;Limit&gt;</A>
clause inside the
<A
HREF="core.html#location"
>location</A>
directive to limit access to DAV-enabled locations.</P>
<TABLE WIDTH="70%" BORDER=0 BGCOLOR="#E0E0F0" CELLSPACING=0 CELLPADDING=10>
<TR><TD>
<STRONG>Example</STRONG>:<BR><BR>
<CODE>DavLockDB /tmp/DavLock<BR>
<BR>
&lt;Location /foo&gt;<BR>
Dav On<BR>
<BR>
AuthType Basic<BR>
AuthName DAV<BR>
AuthUserFile user.passwd<BR>
<BR>
&nbsp;&nbsp;&lt;LimitExcept GET HEAD OPTIONS&gt;<BR>
&nbsp;&nbsp;require user admin<BR>
&nbsp;&nbsp;&lt;/LimitExcept&gt;<BR>
&lt;/Location&gt;<BR>
</CODE>
</TD></TR>
</TABLE>
<BR>
<HR>
<H2><A NAME="DavLockDB">DavLockDB</A></H2>
<A
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> DavLockDB <em>filename</em><BR>
<A
HREF="directive-dict.html#Default"
REL="Help"
><STRONG>Default:</STRONG></A>
<EM>None</EM><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Context:</STRONG></A> server config, virtual host<BR>
<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> extension<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_dav
<p>Use the <CODE>DavLockDB</CODE> directive to specify the full path to the
lock database, excluding an extension. The default (file system)
implementation of mod_dav uses a SDBM database to track user locks.
The utility <CODE>modules/dav/util/lockview</CODE> can be
used from the server to display all locks in a lock database.</P>
<TABLE WIDTH="70%" BORDER=0 BGCOLOR="#E0E0F0" CELLSPACING=0 CELLPADDING=10>
<TR><TD>
<STRONG>Example</STRONG>:<BR><BR>
<CODE>DavLockDB /tmp/DavLock<BR>
<BR>
</CODE>
</TD></TR>
</TABLE>
<BR>
<HR>
<H2><A NAME="DavMinTimeout">DavMinTimeout</A></H2>
<A
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> DavMinTimeout <em>seconds</em><BR>
<A
HREF="directive-dict.html#Default"
REL="Help"
><STRONG>Default:</STRONG></A>
<CODE>DavMinTimeout 0</CODE><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Context:</STRONG></A> directory<BR>
<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> extension<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_dav
<p>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.</P>
<p>Use the <CODE>DavMinTimeout</CODE> 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 <CODE>DavMinTimeout</CODE>
can override this to a higher value (like 600 seconds) to reduce the chance
of the client losing the lock due to network latency.</P>
<TABLE WIDTH="70%" BORDER=0 BGCOLOR="#E0E0F0" CELLSPACING=0 CELLPADDING=10>
<TR><TD>
<STRONG>Example</STRONG>:<BR><BR>
<CODE>&lt;Location /MSWord&gt;<BR>
DavMinTimeout 600<BR>
&lt;/Location&gt;<BR>
<BR>
</CODE>
</TD></TR>
</TABLE>
<BR>
<HR>
<H2><A NAME="DavDepthInfinity">DavDepthInfinity</A></H2>
<A
HREF="directive-dict.html#Syntax"
REL="Help"
><STRONG>Syntax:</STRONG></A> DavDepthInfinity on|off<BR>
<A
HREF="directive-dict.html#Default"
REL="Help"
><STRONG>Default:</STRONG></A>
<CODE>DavDepthInfinity off</CODE><BR>
<A
HREF="directive-dict.html#Context"
REL="Help"
><STRONG>Context:</STRONG></A> directory<BR>
<A
HREF="directive-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> extension<BR>
<A
HREF="directive-dict.html#Module"
REL="Help"
><STRONG>Module:</STRONG></A> mod_dav
<p>Use the <CODE>DavDepthInfinity</CODE> 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.</P>
<!--#include virtual="footer.html" -->
</BODY>
</HTML>