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.
- Host: GitHub
- URL: https://github.com/nginx-modules/ngx_http_static_delete_module
- Owner: nginx-modules
- Created: 2014-04-11T00:11:20.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2012-11-23T07:55:50.000Z (over 12 years ago)
- Last Synced: 2025-02-07T11:53:51.255Z (5 months ago)
- Language: C
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
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: locationThe 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.