Figured this - I had two installation of nginx on my machine, and one of them was without perl. So using the right nginx, I could get it to work. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,43289,43290#msg-43290