OK, It my bad. I checked with Origin request header and its working. :) Thanks 姚伟斌 for the nice module and it works with nginx-1.2.1 too :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230641,230788#msg-230788