Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2015-12-07 16:30:48 +0300
committerRoman Arutyunyan <arut@nginx.com>2015-12-07 16:30:48 +0300
commit8ba626ccd71cbd704c7c69928d1d6fe58fd0445f (patch)
tree6869ddd10bdbce26f4a6239018c488f40ed231fd /auto/sources
parent1b478c50deba414dae292c9a5f0f07114b9fbc81 (diff)
Slice filter.
Splits a request into subrequests, each providing a specific range of response. The variable "$slice_range" must be used to set subrequest range and proper cache key. The directive "slice" sets slice size. The following example splits requests into 1-megabyte cacheable subrequests. server { listen 8000; location / { slice 1m; proxy_cache cache; proxy_cache_key $uri$is_args$args$slice_range; proxy_set_header Range $slice_range; proxy_cache_valid 200 206 1h; proxy_pass http://127.0.0.1:9000; } }
Diffstat (limited to 'auto/sources')
-rw-r--r--auto/sources4
1 files changed, 4 insertions, 0 deletions
diff --git a/auto/sources b/auto/sources
index f900aef0a..2e44ce184 100644
--- a/auto/sources
+++ b/auto/sources
@@ -360,6 +360,10 @@ HTTP_USERID_FILTER_MODULE=ngx_http_userid_filter_module
HTTP_USERID_SRCS=src/http/modules/ngx_http_userid_filter_module.c
+HTTP_SLICE_FILTER_MODULE=ngx_http_slice_filter_module
+HTTP_SLICE_SRCS=src/http/modules/ngx_http_slice_filter_module.c
+
+
HTTP_REALIP_MODULE=ngx_http_realip_module
HTTP_REALIP_SRCS=src/http/modules/ngx_http_realip_module.c