-*- mode:org -*-
* Requirements:
** lua 5.1 ( http://www.lua.org/ )
-** libapreq2 ( http://httpd.apache.org/apreq/download.cgi )
- This is no longer a requirement, actually
-** Apache HTTPD 2.2 ( http://httpd.apache.org/ )
+** Apache HTTPD 2.2 ( http://httpd.apache.org/ ) or Apache HTTPD 2.3
* Documentation
See docs/README
See NOTICE file for more information
* Problems and Patches:
- Please use dev@httpd.apache.org for discussing mod_wombat development
+ Please use dev@httpd.apache.org for discussing mod_lua development
To subscribe send email to dev-subscribe@httpd.apache.org
Note that this is for development discussion, not user support :-)
See sample_httpd.conf for examples
The basic module loading directive is
- LoadModule apreq_module modules/mod_apreq2.so
- LoadModule wombat_module modules/mod_wombat.so
-I included the apreq_module in the example as you need it to :-)
+ LoadModule lua_module modules/mod_lua.so
The handler name is "lua-script" so you can use the normal
AddHandler directive, such as "AddHandler lua-script .lua" to
-set anything ending in .lua to use mod_wombat to evaluate
+set anything ending in .lua to use mod_lua to evaluate
-mod_wombat exports several additional directives:
+mod_lua exports several additional directives:
LuaRoot /path/to/a/directory
Specify the base path which will be used to evaluate all
- relative paths within mod_wombat. If not specified they
+ relative paths within mod_lua. If not specified they
will be resolved relative to the current working directory,
which may not always work well for a server.
-*- mode:org -*-
-* Building mod_wombat
- The first step is to build mod_wombat per the instructions in
+* Building mod_lua
+ The first step is to build mod_lua per the instructions in
building-from-subversion.txt.
* Build and install LuaSocket
-mod_wombat always looks to invoke a function for the handler, rather than
+mod_lua always looks to invoke a function for the handler, rather than
just evaluating a script body CGI style. A handler function looks
something like this:
Listen 8000
-LoadModule apreq_module modules/mod_apreq2.so
-LoadModule wombat_module modules/mod_wombat.so
+LoadModule lua_module modules/mod_lua.so
AddHandler lua-script .lua