Thank you. I am looking for an simpler ( direct ) approach. For now I have put a sed script in my bounce nginx which does that. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236654,236706#msg-236706