changeset 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 35f0ee7a3c28
children 70f3d876b569
files README
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <path>" option