FAQ

Page Discussion History

Difference between revisions of "HttpDavModule"

(create_full_put_path)
(Synopsis)
Line 1: Line 1:
 
= Synopsis =
 
= Synopsis =
  
This module adds the HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY and MOVE.  
+
This module adds the HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY and MOVE.  It does not provide full DAV support.  If you need full DAV support in Nginx, please see [https://github.com/arut/nginx-dav-ext-module ngx-dav-ext-module on github].
  
 
This module is not compiled by default. It is necessary to enable it at compile-time via
 
This module is not compiled by default. It is necessary to enable it at compile-time via

Revision as of 01:53, 2 May 2012

Contents

Synopsis

This module adds the HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY and MOVE. It does not provide full DAV support. If you need full DAV support in Nginx, please see ngx-dav-ext-module on github.

This module is not compiled by default. It is necessary to enable it at compile-time via

./configure --with-http_dav_module

Example:

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

Directives

dav_access

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_dav_module/dav_access.txt

This directive assigns access rights for file and directories, for example:

dav_access user:rw group:rw all:r;

If assigning any permissions for groups or all, then it's not necessary to indicate permissions for user:

dav_access group:rw all:r;

dav_methods

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_dav_module/dav_methods.txt

This directive enables specified HTTP and WebDAV methods. Setting it to off disables all methods, ignoring the remaining parameters.

For the PUT method the destination file must reside on the same partition as the directory where the temporary file is stored (given by directive client_body_temp_path in the location section).

When a file is created using the PUT method it is possible to assign the modification date by setting the Date header.

create_full_put_path

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_dav_module/create_full_put_path.txt

By default, the PUT method can only create files within existing directories. This directive permits creating all necessary intermediate directories.

min_delete_depth

ERROR in secure-include.php: could not read the given src URL http://wiki.nginx.org/nginx.org/ngx_http_dav_module/min_delete_depth.txt

References

Original Documentation