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