Mercurial > hg > nginx
comparison auto/options @ 6317:29f35e60840b
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;
}
}
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 07 Dec 2015 16:30:48 +0300 |
parents | 257b51c37c5a |
children | 85dea406e18f |
comparison
equal
deleted
inserted
replaced
6316:f44de0d12143 | 6317:29f35e60840b |
---|---|
69 HTTP_DAV=NO | 69 HTTP_DAV=NO |
70 HTTP_ACCESS=YES | 70 HTTP_ACCESS=YES |
71 HTTP_AUTH_BASIC=YES | 71 HTTP_AUTH_BASIC=YES |
72 HTTP_AUTH_REQUEST=NO | 72 HTTP_AUTH_REQUEST=NO |
73 HTTP_USERID=YES | 73 HTTP_USERID=YES |
74 HTTP_SLICE=NO | |
74 HTTP_AUTOINDEX=YES | 75 HTTP_AUTOINDEX=YES |
75 HTTP_RANDOM_INDEX=NO | 76 HTTP_RANDOM_INDEX=NO |
76 HTTP_STATUS=NO | 77 HTTP_STATUS=NO |
77 HTTP_GEO=YES | 78 HTTP_GEO=YES |
78 HTTP_GEOIP=NO | 79 HTTP_GEOIP=NO |
224 --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;; | 225 --with-http_gzip_static_module) HTTP_GZIP_STATIC=YES ;; |
225 --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES ;; | 226 --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES ;; |
226 --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;; | 227 --with-http_random_index_module) HTTP_RANDOM_INDEX=YES ;; |
227 --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;; | 228 --with-http_secure_link_module) HTTP_SECURE_LINK=YES ;; |
228 --with-http_degradation_module) HTTP_DEGRADATION=YES ;; | 229 --with-http_degradation_module) HTTP_DEGRADATION=YES ;; |
230 --with-http_slice_module) HTTP_SLICE=YES ;; | |
229 | 231 |
230 --without-http_charset_module) HTTP_CHARSET=NO ;; | 232 --without-http_charset_module) HTTP_CHARSET=NO ;; |
231 --without-http_gzip_module) HTTP_GZIP=NO ;; | 233 --without-http_gzip_module) HTTP_GZIP=NO ;; |
232 --without-http_ssi_module) HTTP_SSI=NO ;; | 234 --without-http_ssi_module) HTTP_SSI=NO ;; |
233 --without-http_userid_module) HTTP_USERID=NO ;; | 235 --without-http_userid_module) HTTP_USERID=NO ;; |
392 --with-http_gzip_static_module enable ngx_http_gzip_static_module | 394 --with-http_gzip_static_module enable ngx_http_gzip_static_module |
393 --with-http_auth_request_module enable ngx_http_auth_request_module | 395 --with-http_auth_request_module enable ngx_http_auth_request_module |
394 --with-http_random_index_module enable ngx_http_random_index_module | 396 --with-http_random_index_module enable ngx_http_random_index_module |
395 --with-http_secure_link_module enable ngx_http_secure_link_module | 397 --with-http_secure_link_module enable ngx_http_secure_link_module |
396 --with-http_degradation_module enable ngx_http_degradation_module | 398 --with-http_degradation_module enable ngx_http_degradation_module |
399 --with-http_slice_module enable ngx_http_slice_module | |
397 --with-http_stub_status_module enable ngx_http_stub_status_module | 400 --with-http_stub_status_module enable ngx_http_stub_status_module |
398 | 401 |
399 --without-http_charset_module disable ngx_http_charset_module | 402 --without-http_charset_module disable ngx_http_charset_module |
400 --without-http_gzip_module disable ngx_http_gzip_module | 403 --without-http_gzip_module disable ngx_http_gzip_module |
401 --without-http_ssi_module disable ngx_http_ssi_module | 404 --without-http_ssi_module disable ngx_http_ssi_module |