Mercurial > hg > ngx_http_auth_request_module
comparison README @ 5:cc231fa95159
Auth request: expand example in README.
1. An example how to don't pass to upstream server body (if happend to be
already read from client) and Content-Length header to handle POSTs
correctly.
2. An example how to pass original request URI to backend.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 05 Mar 2010 21:20:32 +0300 |
parents | 187ac993cd15 |
children | fb05a061532c |
comparison
equal
deleted
inserted
replaced
4:35f0ee7a3c28 | 5:cc231fa95159 |
---|---|
27 ... | 27 ... |
28 } | 28 } |
29 | 29 |
30 location = /auth { | 30 location = /auth { |
31 proxy_pass ... | 31 proxy_pass ... |
32 proxy_pass_request_body off; | |
33 proxy_set_header Content-Length ""; | |
34 proxy_set_header X-Original-URI $request_uri; | |
32 } | 35 } |
33 | 36 |
34 To compile nginx with auth request module, use "--add-module <path>" option | 37 To compile nginx with auth request module, use "--add-module <path>" option |
35 to nginx configure. | 38 to nginx configure. |
36 | 39 |