I am using Apache httpd 2.4 with Lua 5.1.4. I 'm trying to use the function that comes with r object of each request, as explained here:
https://httpd.apache.org/docs/2.4/mod/mod_lua.html#functions
Some function, like r:write() and r:md5() works well, but most of them doesn't work, this is a minimal list:
- r:setcookie
- r:getcookie
- r:escape
The error is:
AH01471: Lua error: /path/to/lua/file: attempt to call method 'getcookie' (a nil value)
Any help will be appreciated.