Great, thank you very much Maxim, it works perfectly. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,143569,143743#msg-143743