FAQ

Page Discussion History

Difference between revisions of "HttpDavModule"

m (References: Update link to the original documentation)
(Directives)
Line 26: Line 26:
 
= Directives =
 
= Directives =
 
== dav_access ==
 
== dav_access ==
'''syntax:''' ''dav_access user:permissions [users:permissions]  ...''
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_dav_module/dav_access.txt" />
 
+
'''default:''' ''dav_access user:rw''
+
 
+
'''context:''' ''http, server, location''
+
  
 
This directive assigns access rights for file and directories, for example:
 
This directive assigns access rights for file and directories, for example:
Line 43: Line 39:
  
 
== dav_methods ==
 
== dav_methods ==
'''syntax:''' ''dav_methods [off|put|delete|mkcol|copy|move]  ...''
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_dav_module/dav_methods.txt" />
 
+
'''default:''' ''dav_methods off''
+
 
+
'''context:''' ''http, server, location''
+
  
 
This directive enables specified HTTP and WebDAV methods.  Setting it to <code>off</code> disables all methods, ignoring the remaining parameters.
 
This directive enables specified HTTP and WebDAV methods.  Setting it to <code>off</code> disables all methods, ignoring the remaining parameters.
Line 56: Line 48:
  
 
== create_full_put_path ==
 
== create_full_put_path ==
'''syntax:''' ''create_full_put_path on|off''
+
<include wikitext nopre src="http://wiki.nginx.org/nginx.org/ngx_http_dav_module/create_full_put_path.txt" />
 
+
'''default:''' ''create_full_put_path off''
+
 
+
'''context:''' ''http, server, location''
+
  
 
By default, the PUT method can only create files within existing directories.  
 
By default, the PUT method can only create files within existing directories.  

Revision as of 18:34, 30 April 2012

Contents

Synopsis

This module adds the HTTP and WebDAV methods PUT, DELETE, MKCOL, COPY and MOVE.

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.

References

Original Documentation