Skip to content

zhaozg/mod_luaex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Apache module to extend mod_lua

mod_luaex is a module for apache2 that extends mod_lua to support socache, session, filter and other, making it more flexible.

Introduction

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

Build

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.

Build on UNIX using makefile

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

Build on Windows using makefile

  1. Change setting in config.win
  2. nmake -f makefile.win

API

mod_lua

mod_lua

mod_luaex

TODO

Bug

mod_lua

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.

mod_luaex

issues

License

This software is provided under the same license as Apache.

About

extend mod_lua module in apache2.4

Resources

Stars

Watchers

Forks

Packages

No packages published