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

1
min_delete_depth 4;

allows removing files on requests

1
2
3
/users/00/00/name
/users/00/00/name/pic.jpg
/users/00/00/page.html

and denies the removal of

1
/users/00/00
doc_nginx
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.