Nginx auth_request handler accessing POST request body?
问题 I'm using Nginx (version 1.9.9) as a reverse proxy to my backend server. It needs to perform authentication/authorization based on the contents of the POST requests. And I'm having trouble reading the POST request body in my auth_request handler. Here's what I got. Nginx configuration (relevant part): server { location / { auth_request /auth-proxy; proxy_pass http://backend/; } location = /auth-proxy { internal; proxy_pass http://auth-server/; proxy_pass_request_body on; proxy_no_cache "1"; }