Thanks for very subtle suggestion. I do agree with you and follow this strategy (to use programming language for processing the url arguments). Posted at Nginx Forum: http://forum.nginx.org/read.php?2,242547,242565#msg-242565