How to have 10% of requests rewrite

kshaikh nginx-forum at nginx.us
Tue Feb 2 08:35:16 MSK 2010


Guys,

I have a proxy which runs at http://xs.to.  It caches http://f0.ultraxs.com.  I need it to rewrite to a JPG 10% of the time.

I did this with upstream backend, but the issue was that the disk i/o really shot up doing that.

Is there a good clean way to run an if statement and rewrite 10% of the requests ?

Khalid

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




More information about the nginx mailing list