agentzh/set-misc-nginx-module — pull request #8 by viperet (2012-03-30 21:33:52+00:00)
Title: set_rotate

Hi! I've a new dirrective set_rotate $value $from $to, which "rotates" $value in range $from - $to
Sample config:

location /rotate {
default_type text/plain;
set $counter $cookie_counter;
set_rotate $counter 1 5;
echo $counter;
add_header Set-Cookie counter=$counter;
}

Accessing "/rotate" will display numbers from 1 to 5 in cycle. I use this directive for rotating banners.
I've added some basic documentation to doc/HttpSetMiscModule.wiki