I've resolved the problem by addind 'init' function into postconfiguration slot of module context. The next problem is to find out how to get module conf variables from there Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212741,212764#msg-212764