Mercurial > hg > ngx_http_bytes_filter_module
comparison README @ 6:91985471307e
Add license and some minimal documentation.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 04 Jul 2008 05:35:38 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5:be5e612dd602 | 6:91985471307e |
---|---|
1 Bytes module for nginx. | |
2 | |
3 This module was designed to allow easy access to range of file data. It | |
4 searches request arguments for 'bytes=...' and return requested range. All | |
5 requested data is returned concatinated in single reply, with apropriate | |
6 Content-Length set. | |
7 | |
8 All of the above allows to do nasty things with regular files and even | |
9 proxied replies, including things like flv streaming. E.g. one may use | |
10 something like this instead of flv module: | |
11 | |
12 location /video/ { | |
13 bytes on; | |
14 if ($args ~ "start=(\d+)") { | |
15 set $args "bytes=0-12,$1-"; | |
16 } | |
17 } | |
18 | |
19 Argument bytes= must contain range specification as defined in RFC 2616, | |
20 "14.35.1 Byte Ranges", with the following exceptions: | |
21 | |
22 1. Whitespaces aren't permitted. | |
23 | |
24 1. Ranges must not overlap and must be monothonic. E.g. something | |
25 like "bytes=10-20,0-10" isn't premitted. | |
26 | |
27 To compile nginx with bytes module, use "--add-module <path>" option to nginx | |
28 configure. |