Forum: NGINX Proxying requests based on $http_authorization (API Key)

2974d09ac2541e892966b762aad84943?d=identicon&s=25 justin (Guest)
on 2013-08-19 21:56
(Received via mailing list)

We are looking to proxy requests to different backends using upstream
on http basic auth. I.E. the API key of the request. I am thinking I
need to
first get the API key from the raw http request ($http_authorization).
do a lookup in redis for the backend to forward too.

We are already using OpenResty. Can we do this natively, or even better
are there 3rd party modules we can utilize to help with this? Is using
required, or can we utilize standard nginx directives?

Thanks for the help, and insights.

Posted at Nginx Forum:,242036,242036#msg-242036
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.