mod_luaex is a module for apache2 that extends mod_lua to support socache, session, filter and other, making it more flexible.
Back in 2005, I began writing my own mod_lua, inspired by mod_python. A few years later I was glad to see the official mod_lua came out. Because some functionality is missing in the official version, I need to write a ext module.
mod_luaex does not replace mod_lua, it works after mod_lua is enabled and actived. mod_luaex depends on mod_lua, as well as mod_dbd, mod_session and mod_socache.
The target environment is Apache HTTPd 2.4
patch mod_lua with patch
Please see mod_lua.patch to view what changed.
cd $HTTPSRC/modules/lua patch < path of mod_lua.patch
then recompile apache httpd and install it.
make HTTPSRC=... HTTPDST=... LUAINCS=/usr/local/include/luajit-2.1
HTTPSRC: path to Aapche HTTPD 2.4 source dir HTTPDST: path to Apache HTTPD 2.4 binary installed dir LUAINCS: path to luajit include dir
- Change setting in config.win
- nmake -f makefile.win
TODO
all lists Bug 60419 will make lua filter not work, you can given LuaInherit to avoid it. Bug 51001 not hook hook ap_lua_run_lua_open at all.
please see patch to solve it partially.
This software is provided under the same license as Apache.