Ok, thank you for making the things clear. I'll try to go with the first solution then. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236099,236124#msg-236124