annotate xml/en/docs/http/ngx_http_dav_module.xml @ 774:8ff309263cb9

Corrected syntax of "dav_methods" directive and updated module description.
author Vladimir Homutov <vl@nginx.com>
date Fri, 23 Nov 2012 07:48:18 +0000
parents 764fbac1b8b4
children 95c3c3bbf1ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
1 <?xml version="1.0"?>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
2
580
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 371
diff changeset
3 <!--
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 371
diff changeset
4 Copyright (C) Igor Sysoev
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 371
diff changeset
5 Copyright (C) Nginx, Inc.
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 371
diff changeset
6 -->
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 371
diff changeset
7
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10 <module name="Module ngx_http_dav_module"
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 link="/en/docs/http/ngx_http_dav_module.html"
589
764fbac1b8b4 Added document revision.
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
12 lang="en"
774
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
13 rev="2">
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 <section id="summary">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17 <para>
774
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
18 The <literal>ngx_http_dav_module</literal> module is intended for file
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
19 management automation via the WebDAV protocol.
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
20 The module processes HTTP and WebDAV
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 methods PUT, DELETE, MKCOL, COPY, and MOVE.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 This module is not built by default, it should be enabled with the
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 <literal>--with-http_dav_module</literal>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 configuration parameter.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
29
774
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
30 <para>
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
31 <note>
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
32 WebDAV clients that require additional WebDAV methods to operate
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
33 will not work with this module.
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
34 </note>
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
35 </para>
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
36
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37 </section>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
38
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
40 <section id="example" name="Example Configuration">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
42 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
43 <example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44 location / {
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
45 root /data/www;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
46
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47 client_body_temp_path /data/client_temp;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 dav_methods PUT DELETE MKCOL COPY MOVE;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51 create_full_put_path on;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
52 dav_access group:rw all:r;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 limit_except GET {
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55 allow 192.168.1.0/32;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
56 deny all;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57 }
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 }
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59 </example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
62 </section>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
64
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
65 <section id="directives" name="Directives">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67 <directive name="dav_access">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68 <syntax><value>users</value>:<value>permissions</value> ...</syntax>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
69 <default>user:rw</default>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
70 <context>http</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
71 <context>server</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
72 <context>location</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
73
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
74 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
75 Sets access permissions for newly created files and directories, e.g.:
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
76 <example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
77 dav_access user:rw group:rw all:r;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
78 </example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
79 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
80
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
81 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
82 If any <literal>group</literal> or <literal>all</literal> access permissions
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
83 are specified then <literal>user</literal> permissions may be omitted:
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
84 <example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
85 dav_access group:rw all:r;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
86 </example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
87 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
88
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
89 </directive>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
90
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
91
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
92 <directive name="dav_methods">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
93 <syntax>
774
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
94 <literal>off</literal> | <value>method</value> ...</syntax>
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
95 <default>off</default>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
96 <context>http</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
97 <context>server</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
98 <context>location</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
99
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
100 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
101 Allows the specified HTTP and WebDAV methods.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
102 The parameter <literal>off</literal> denies all methods processed
774
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
103 by this module.
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
104 The following methods are supported:
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
105 <literal>PUT</literal>, <literal>DELETE</literal>, <literal>MKCOL</literal>,
8ff309263cb9 Corrected syntax of "dav_methods" directive and updated module description.
Vladimir Homutov <vl@nginx.com>
parents: 589
diff changeset
106 <literal>COPY</literal>, and <literal>MOVE</literal>.
371
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
107 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
108
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
109 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
110 A file uploaded with the PUT method is first written to a temporary file,
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
111 then a file is renamed.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
112 Starting from version 0.8.9 temporary files and the persistent store
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
113 can be put on different file systems but be aware that in this case
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
114 a file is copied across two file systems instead of the cheap rename operation.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
115 It is thus recommended that for any given location both saved files and a
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
116 directory holding temporary files set by the
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
117 <link doc="ngx_http_core_module.xml" id="client_body_temp_path"/>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
118 directive are put on the same file system.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
119 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
120
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
121 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
122 When creating a file with the PUT method, it is possible to specify
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
123 the modification date by passing it in the <header>Date</header>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
124 header field.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
125 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
126
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
127 </directive>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
128
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
129
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
130 <directive name="create_full_put_path">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
131 <syntax><literal>on</literal> | <literal>off</literal></syntax>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
132 <default>off</default>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
133 <context>http</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
134 <context>server</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
135 <context>location</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
136
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
137 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
138 The WebDAV specification only allows to create files in already
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
139 existing directories.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
140 This directive allows to create all needed intermediate directories.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
141 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
142
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
143 </directive>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
144
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
145
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
146 <directive name="min_delete_depth">
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
147 <syntax><value>number</value></syntax>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
148 <default>0</default>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
149 <context>http</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
150 <context>server</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
151 <context>location</context>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
152
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
153 <para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
154 Allows the DELETE method to remove files provided that
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
155 the number of elements in a request path is not less than the specified.
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
156 For example, the directive
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
157 <example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
158 min_delete_depth 4;
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
159 </example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
160 allows to remove files on requests
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
161 <example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
162 /users/00/00/name
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
163 /users/00/00/name/pic.jpg
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
164 /users/00/00/page.html
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
165 </example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
166 and denies the removal of
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
167 <example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
168 /users/00/00
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
169 </example>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
170 </para>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
171
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
172 </directive>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
173
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
174 </section>
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
175
e5e7d6365612 English translation of ngx_http_dav_module.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
176 </module>