How to have 10% of requests rewrite

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


I have a proxy which runs at  It caches  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 ?


Posted at Nginx Forum:,49143,49143#msg-49143

More information about the nginx mailing list