An open API service indexing awesome lists of open source software.

https://github.com/nginx-modules/ngx_http_static_delete_module

nginx module used to delete static file.
https://github.com/nginx-modules/ngx_http_static_delete_module

Last synced: 3 months ago
JSON representation

nginx module used to delete static file.

Awesome Lists containing this project

README

        

ngx_http_static_delete
--------------------------------------------------------------

The ngx_http_static_delete module is used to delete a file
in `nginx`'s document root.

Synopsis
===========

location ~ /DELETE/(.*) {
allow 192.168.100.101;
deny all;
root /usr/local/nginx/html;
static_delete /$1;
}

Diretives
===========

* syntax: static_delete $value
* default: --
* context: location

The value is the relative path of the static file to be deleted. It is
possible to use a text, variables and their combination. It would be
mapped to root directory to construct a absolute path, then try to
delete it. When deleted successfully, the response for the connection
is 200. When '../' and './' in the path of file to be deleted, and '/'
is the last character, the response would be 405. Otherwise, 404 returned.