Newer
Older
ngx_http_header_inspect / README
@Andreas Jaggi Andreas Jaggi on 24 Sep 2011 2 KB Inspect Cache-Control header, fixes #11
  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. Referer, Content-Location, Cache-Control
  25.  
  26. Report Bugs
  27. Create a ticket on the issue tracking interface of GitHub:
  28. http://github.com/x-way/ngx_http_header_inspect/issues
  29.  
  30. Source Repository
  31. Available on GitHub:
  32. http://github.com/x-way/ngx_http_header_inspect
  33.  
  34. Author
  35. Andreas Jaggi <andreas.jaggi@waterwave.ch>
  36.  
  37. Copyright & License
  38. Copyright (c) 2011 Andreas Jaggi
  39.  
  40. This module is licensed under the terms of the BSD license.
  41.  
  42. Redistribution and use in source and binary forms, with or without
  43. modification, are permitted provided that the following conditions are
  44. met:
  45.  
  46. * Redistributions of source code must retain the above copyright
  47. notice, this list of conditions and the following disclaimer.
  48.  
  49. * Redistributions in binary form must reproduce the above copyright
  50. notice, this list of conditions and the following disclaimer in the
  51. documentation and/or other materials provided with the distribution.
  52.  
  53. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  54. IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  55. TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  56. PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  57. HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  58. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
  59. TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  60. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  61. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  62. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  63. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.