Here is one more piece of code, in fact ready module for nginx to work with OCI: http://habrahabr.ru/blogs/nginx/69974/ at the end of post. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,35329,53873#msg-53873