Hello Knot Resolver team,

I tried to upgrade to the latest stable version of Knot Resolver on Centos7, 
where I'm facing with a configuration issue with the module HTTP.

I used it in version 2.3.0 with configuration 
-- Load Useful modules
modules = {
        'policy',   -- Block queries to local zones/bad sites
        'view',     -- Handle requests by source IP
        'stats',    -- Track internal statistics
        'hints',    -- Add static records to resolver
        http = {
                host = '10.0.0.1',
                port = 8053,
                cert = false,
        }
}

and it works as expected, I reached a /stats/ from the browser.

Unfortunately after upgrade to version 4.2.0 I'm not able to correctly start the module even if I follow the migration hints on documentation websites. I still receive a startup fail message
Oct 04 11:32:09 dns systemd[1]: Starting Knot Resolver daemon...
Oct 04 11:32:54 dns kresd[9540]: error: /usr/lib64/knot-resolver/kres_modules/http.lua:35: attempt to call global 'moduledir' (a nil value)
Oct 04 11:32:54 dns kresd[9540]: [system] failed to load module 'http'
Oct 04 11:32:54 dns kresd[9540]: error occured here (config filename:lineno is at the bottom, if config is involved):
Oct 04 11:32:54 dns kresd[9540]: stack traceback:
Oct 04 11:32:54 dns kresd[9540]: [C]: in function 'load'
Oct 04 11:32:54 dns kresd[9540]: /etc/knot-resolver/kresd.conf:14: in main chunk
Oct 04 11:32:54 dns kresd[9540]: ERROR: No such file or directory
Oct 04 11:32:54 dns systemd[1]: kresd@1.service: main process exited, code=exited, status=1/FAILURE
Oct 04 11:32:54 dns systemd[1]: Failed to start Knot Resolver daemon.

Current configuration is:
-- interfaces
...
net.listen('10.0.0.1', 8453, { kind = 'webmgmt' })

-- load HTTP module with defaults (self-signed TLS cert)
modules.load('http')
http.config()

-- Load Useful modules
modules = {
        'policy',   -- Block queries to local zones/bad sites
        'view',     -- Handle requests by source IP
        'stats',    -- Track internal statistics
        'hints',    -- Add static records to resolver
}

Where should be written the path to module http? What I did wrong?

Regards,
--
Smil Milan Jeskyňka Kazatel