Forum: NGINX rewrite url in upstream block

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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
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
This topic is locked and can not be replied to.