thanks igor, this is working. I will read the doc for better understanding of rewriting with nginx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,199820,199832#msg-199832