Newer
Older
ngx_http_header_inspect / README
@Andreas Jaggi Andreas Jaggi on 19 Sep 2011 2 KB Inspect TE header, fixes #33
  1. Name
  2. ngx_http_header_inspect - Inspect HTTP headers
  3.  
  4. Synopsis
  5. location /foo {
  6. inspect_headers on;
  7. inspect_headers_log_violations on;
  8. inspect_headers_log_uninspected on;
  9. inspect_headers_block_violations on;
  10.  
  11. # only allow 3 range definitions in Range header
  12. inspect_headers_range_max_byteranges 3;
  13. }
  14.  
  15. Limitations
  16. Currently only inspects the following HTTP/1.1 headers:
  17. Range, If-Range, If-Unmodified-Since, If-Modified-Since, Date,
  18. Accept-Encoding, Accept-Language, Accept-Charset, Max-Forwards,
  19. If-Match, If-None-Match, Last-Modified, Content-Length,
  20. Expires, Content-Language, Content-Encoding, Allow, Host,
  21. Accept, Connection, Content-Range, User-Agent, Upgrade, Via,
  22. From, Pragma, Content-Type, Content-MD5, Authorization, Expect,
  23. Proxy-Authorization, Warning, Trailer, Transfer-Encoding, TE
  24.  
  25. Report Bugs
  26. Create a ticket on the issue tracking interface of GitHub:
  27. http://github.com/x-way/ngx_http_header_inspect/issues
  28.  
  29. Source Repository
  30. Available on GitHub:
  31. http://github.com/x-way/ngx_http_header_inspect
  32.  
  33. Author
  34. Andreas Jaggi <andreas.jaggi@waterwave.ch>
  35.  
  36. Copyright & License
  37. Copyright (c) 2011 Andreas Jaggi
  38.  
  39. This module is licensed under the terms of the BSD license.
  40.  
  41. Redistribution and use in source and binary forms, with or without
  42. modification, are permitted provided that the following conditions are
  43. met:
  44.  
  45. * Redistributions of source code must retain the above copyright
  46. notice, this list of conditions and the following disclaimer.
  47.  
  48. * Redistributions in binary form must reproduce the above copyright
  49. notice, this list of conditions and the following disclaimer in the
  50. documentation and/or other materials provided with the distribution.
  51.  
  52. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  53. IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  54. TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  55. PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  56. HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  57. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
  58. TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  59. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  60. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  61. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  62. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.