Fixed some overdue directive definitions to be correct.

This commit is contained in:
2024-04-13 00:34:56 +03:00
parent 58b028ec1c
commit 1d63062954

View File

@@ -123,15 +123,15 @@ static ngx_conf_bitmask_t ngx_http_dav_ext_methods_mask[] = {
// The module directives definition
static ngx_command_t ngx_http_dav_ext_commands[] = {
{ngx_string("dav_ext_lock_zone"), NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE12,
{ngx_string("webdav_lock_zone"), NGX_HTTP_MAIN_CONF | NGX_CONF_TAKE12,
ngx_http_dav_ext_lock_zone, 0, 0, NULL},
{ngx_string("dav_ext_lock"),
{ngx_string("webdav_lock"),
NGX_HTTP_MAIN_CONF | NGX_HTTP_SRV_CONF | NGX_HTTP_LOC_CONF |
NGX_CONF_TAKE1,
ngx_http_dav_ext_lock, NGX_HTTP_LOC_CONF_OFFSET, 0, NULL},
{ ngx_string("dav_ext_methods"),
{ ngx_string("webdav_methods"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE,
ngx_conf_set_bitmask_slot,
NGX_HTTP_LOC_CONF_OFFSET,
@@ -152,7 +152,7 @@ static ngx_command_t ngx_http_dav_ext_commands[] = {
offsetof(ngx_http_dav_ext_loc_conf_t, min_delete_depth),
NULL },
{ ngx_string("dav_access"),
{ ngx_string("webdav_access"),
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE123,
ngx_conf_set_access_slot,
NGX_HTTP_LOC_CONF_OFFSET,