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