The only way around this would be some kind of counter keeping track of whats available and if max is reached create a file where you test on in a nginx config, maybe Lua can do this counting part. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251476,251478#msg-251478