How to get nginx to pass HTTP_AUTHORIZATION header to Apache
- by codeinthehole
Am using Nginx as a reverse proxy to an Apache server that uses HTTP Auth. For some reason, I can't get the HTTP_AUTHORIZATION header through to Apache, it seems to get filtered out by Nginx. Hence, no requests can authenticate.
Note that the Basic auth is dynamic so I don't want to hard-code it in my nginx config.
My nginx config is:
server {…