Mod_plua 0.52 to publish the Lua module of the Apache HTTP server

Source: Internet
Author: User
Keywords Apache http Server Mod_plua lua module
Tags aliyun apache applications development development applications different embedded get

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.