mod_pLua is an Apache HTTP Server 2.x module for developing Web applications with Lua. With mod_pLua, you can use Lua for scripting in two distinct ways; Embedded Lua scripting, , or plain Lua scripting with a CGI-style interface. mod_pLua precompiles all scripts and caches the compiled binary code so that each new call to the same file will be lightning fast, allowing you to serve hundreds of thousands of requests per minute on any modern server. Mod_pLua supports both the traditional Lua interpreter as well as LuaJIT for both Windows and UNIX platforms. If your Web server supports it, mod_pLua also utilizes APR_DBD and mod_dbd to handle persistent database connections through the dbopen() Lua function.
|Tags||Module Lua scripting Web Development Apache 2.2 Apache 2 Apache|
|Operating Systems||Linux (32 and 64 bit) Windows (32 and 64 bit) UNIX / Linux FreeBSD|
|Implementation||C Lua Apache Portable Runtime|
Release Notes: This release fixes some warnings. It adds setCookie() and getCookie() for setting and getting cookie values.
Release Notes: This release moves a declaration from the header to the C file to ease APXS installation, stops binaries built with mod_dbd support from complaining that mod_dbd isn't enabled when a connection fails, and fixes an issue which caused POST data from XMLHttpRequests not to be properly recognized.
Release Notes: The Makefile script will now properly clean up when `make clean` is called. The getEnv() function will now report a Server-Version value as well (major.minor.patch). Directives are now only permissable within the main Apache configuration. The include() function now supports including plain Lua files, as set by the pLuaRaw directive.
Release Notes: Modules built with apxs should now run on Unix platforms with Lua 5.2. mod_pLua now supports the PUT and DELETE methods. This release adds getRequestBody([filename]) for reading the request body and optionally writing it to a file.
Release Notes: This release adds file.send(filename) for sending static files using the internal sendfile mechanism. Calling sleep(n) with a negative number will now default to sleeping for 1 second. print(...) will now output the values of booleans and nils, as well as refs to tables, userdata, and functions. This release adds string.explode(string, delimiter) for splitting up strings into chunks. It fixes a potential issue where the pLuaIgnoreLibrary directive could be read incorrectly.