summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_dav.html
blob: 52814c34b2220b98280de02c4f314700ce42e6ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Apache module mod_dav</TITLE>
</HEAD>

<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<BODY
 BGCOLOR="#FFFFFF"
 TEXT="#000000"
 LINK="#0000FF"
 VLINK="#000080"
 ALINK="#FF0000"
>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Module mod_dav</H1>

<p>This module provides Distributed Authoring and Versioning
(<a href="http://www.webdav.org/">WebDAV</a>) functionality.</p>

<A
HREF="module-dict.html#Status"
REL="Help"
><STRONG>Status:</STRONG></A> Extension
<BR>
<A
HREF="module-dict.html#SourceFile"
REL="Help"
><STRONG>Source File:</STRONG></A> mod_dav.c
<BR>
<A
HREF="module-dict.html#ModuleIdentifier"
REL="Help"
><STRONG>Module Identifier:</STRONG></A> dav_module

<h2>Summary</h2>

<p>This module provides class 1 and class 2 
<A HREF="http://www.webdav.org">WebDAV</A> ('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.</p>

<P>
To enable mod_dav, add the following to a container in your <CODE>httpd.conf</CODE> file:</P>

<blockquote>
<CODE>Dav On</CODE>
</blockquote>

<p>Also, specify a valid filename for the DAV lock database by adding
the following to the global section in your <CODE>httpd.conf</CODE>
file:</p>

<blockquote>
<CODE>DavLockDB /tmp/DavLock&nbsp;&nbsp;&nbsp;&nbsp;</CODE><EM>(Any web-server writeable filename, without an extension)</EM>
</blockquote>



<H2>Directives</H2>
<UL>
<LI><A HREF="#DAV">Dav</A>
<LI><A HREF="#DAVLockDB">DavLockDB</A>
<LI><A HREF="#DAVMinTimeout">DavMinTimeout</A>
<LI><A HREF="#DAVDepthInfinity">DavDepthInfinity</A>
</UL>

<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>