location based on querystring

budala10 nginx-forum at nginx.us
Tue Feb 16 11:31:10 MSK 2010


Let's say ia have 2 different url's to a backend.

On is http://domain.com/a.b.c.d, this i just want to proxy to a backend.

But if the reguest is like, http://domain.com/a.b.c.d?id=1222 then i would like to proxy it somewhere else.

How can this be done, eq i just want to proxy urls with ?id=* in it to antoher backend.

Please help if can.


Posted at Nginx Forum: http://forum.nginx.org/read.php?2,54953,54953#msg-54953

More information about the nginx mailing list