Forum: NGINX rewrite url in upstream block

2974d09ac2541e892966b762aad84943?d=identicon&s=25 Gona (Guest)
on 2014-06-16 18:06
(Received via mailing list)

I am using a query parameter in upstream module to serve request based
consistent hashing. This query parameter is introduced in the request
handler module and not originally coming from the downstream. I would
to remove this parameter once the job is done before sending it to an
upstream server but I couldn't see a place where to do this. Rewrite
are not allowed in upstream block. Is there a better way of doing this?


Posted at Nginx Forum:,250892,250892#msg-250892
2974d09ac2541e892966b762aad84943?d=identicon&s=25 Gona (Guest)
on 2014-07-30 13:53
(Received via mailing list)
Any help on this really appreciate.

The request handler is in Lua. It basically breaks a request in to sub
requests, adds a query parameter to each sub request and directs them
through an consistent hash upstream module in C. The upstream
reads the query parameter and sets it to the command variable. I don't
see a
way to remove the query parameter after this step.

Posted at Nginx Forum:,250892,252151#msg-252151
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.