There's no point in trying, that module's code is full of errors and too many hacks. Your better of with Lua which is embedded in our version, see https://www.gakhov.com/articles/implementing-api-based-fileserver-with-nginx-and-lua.html Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289290,289307#msg-289307