Mod_plua is a http://www.aliyun.com/zixun/aggregation/14417.html ">apache HTTP Server 2.x module for LUA web development applications. You can use LUA scripts in two different ways: embedded LUA scripts, or pure LUA scripts for CGI-style interfaces.
Embedded LUA scripts:
<html> <body> get = Parseget (); --# Parse Any get data passed in to us. name = get[' name '] or ' unknown person '; x = (x or 0) + 1; --# Increment A persistent, global variable X.? > <h1>hello <?=name?>!</h1> <?if (x > 3) then?> x is > 3! <?end?> </body></html>
Pure Lua Script:
setContentType ("HTML");
Local VARs = Parseget ();
Local user = vars[' name '] or ' unknown person ';
Print ("Hello,", user);
Mod_plua can precompile all scripts and cache compiled binaries, execute and return when the user accesses, and allow tens of thousands of requests per minute on any modern server. Mod_plua supports the traditional LUA interpreter, as well as the Luajit on Windows and UNIX platforms. If your Web server supports it, Mod_plua is handled through persistent database connections apr_dbd and MOD_DBD dbopen () Lua functions.
Mod_plua 0.52 This version fixes some warnings. Added set and get cookie value Setcookie () and GetCookie ().
Software Information: http://sourceforge.net/p/modplua/wiki/Home/
Download Address: http://sourceforge.net/projects/modplua/files/