min_delete_depth

Syntax: min_delete_depth number;
Default: min_delete_depth 0;
Context: 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 number. For example, the directive

min_delete_depth 4;

allows removing 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
doc_nginx
2017-02-09 07:07:03
Comments
Leave a Comment

Please login to continue.