# HG changeset patch # User Maxim Dounin # Date 1267813232 -10800 # Node ID cc231fa95159a7b9b9569ca090c7ea414ea00323 # Parent 35f0ee7a3c28b607b8614baf4117ec225d8a99cb 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. diff --git a/README b/README --- a/README +++ b/README @@ -29,6 +29,9 @@ Usage: location = /auth { proxy_pass ... + proxy_pass_request_body off; + proxy_set_header Content-Length ""; + proxy_set_header X-Original-URI $request_uri; } To compile nginx with auth request module, use "--add-module " option