# HG changeset patch # User Ruslan Ermilov # Date 1327908774 0 # Node ID e5e7d63656123190ed34ed18f6a561e5ea5db1fe # Parent 66414a4eb347f59b39da9e865661357fef628c94 English translation of ngx_http_dav_module. diff -r 66414a4eb347 -r e5e7d6365612 xml/en/GNUmakefile --- a/xml/en/GNUmakefile Mon Jan 30 07:31:58 2012 +0000 +++ b/xml/en/GNUmakefile Mon Jan 30 07:32:54 2012 +0000 @@ -50,6 +50,7 @@ http/ngx_http_autoindex_module \ http/ngx_http_browser_module \ http/ngx_http_charset_module \ + http/ngx_http_dav_module \ http/ngx_http_empty_gif_module \ http/ngx_http_fastcgi_module \ http/ngx_http_flv_module \ diff -r 66414a4eb347 -r e5e7d6365612 xml/en/docs/http/ngx_http_dav_module.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/en/docs/http/ngx_http_dav_module.xml Mon Jan 30 07:32:54 2012 +0000 @@ -0,0 +1,161 @@ + + + + + + +
+ + +The ngx_http_dav_module module processes HTTP and WebDAV +methods PUT, DELETE, MKCOL, COPY, and MOVE. + + + +This module is not built by default, it should be enabled with the +--with-http_dav_module +configuration parameter. + + +
+ + +
+ + + +location / { + root /data/www; + + client_body_temp_path /data/client_temp; + + dav_methods PUT DELETE MKCOL COPY MOVE; + + create_full_put_path on; + dav_access group:rw all:r; + + limit_except GET { + allow 192.168.1.0/32; + deny all; + } +} + + + +
+ + +
+ + +users:permissions ... +user:rw +http +server +location + + +Sets access permissions for newly created files and directories, e.g.: + +dav_access user:rw group:rw all:r; + + + + +If any group or all access permissions +are specified then user permissions may be omitted: + +dav_access group:rw all:r; + + + + + + + + + off | put | + delete | mkcol | + copy | move + ... +off +http +server +location + + +Allows the specified HTTP and WebDAV methods. +The parameter off denies all methods processed +by this module, ignoring other parameters; + + + +A file uploaded with the PUT method is first written to a temporary file, +then a file is renamed. +Starting from version 0.8.9 temporary files and the persistent store +can be put on different file systems but be aware that in this case +a file is copied across two file systems instead of the cheap rename operation. +It is thus recommended that for any given location both saved files and a +directory holding temporary files set by the + +directive are put on the same file system. + + + +When creating a file with the PUT method, it is possible to specify +the modification date by passing it in the
Date
+header field. +
+ +
+ + + +on | off +off +http +server +location + + +The WebDAV specification only allows to create files in already +existing directories. +This directive allows to create all needed intermediate directories. + + + + + + +number +0 +http +server +location + + +Allows the DELETE method to remove files provided that +the number of elements in a request path is not less than the specified. +For example, the directive + +min_delete_depth 4; + +allows to remove files on requests + +/users/00/00/name +/users/00/00/name/pic.jpg +/users/00/00/page.html + +and denies the removal of + +/users/00/00 + + + + + +
+ +
diff -r 66414a4eb347 -r e5e7d6365612 xml/en/docs/index.xml --- a/xml/en/docs/index.xml Mon Jan 30 07:31:58 2012 +0000 +++ b/xml/en/docs/index.xml Mon Jan 30 07:32:54 2012 +0000 @@ -100,6 +100,11 @@ + +ngx_http_dav_module + + + ngx_http_empty_gif_module diff -r 66414a4eb347 -r e5e7d6365612 xml/en/index.xml --- a/xml/en/index.xml Mon Jan 30 07:31:58 2012 +0000 +++ b/xml/en/index.xml Mon Jan 30 07:32:54 2012 +0000 @@ -141,7 +141,8 @@ -The PUT, DELETE, MKCOL, COPY, and MOVE methods; +The PUT, DELETE, MKCOL, COPY, +and MOVE methods;