]> granicus.if.org Git - apache/commitdiff
change the example to work with just AddHandler/SetHandler,
authorEric Covener <covener@apache.org>
Fri, 5 Aug 2011 15:24:20 +0000 (15:24 +0000)
committerEric Covener <covener@apache.org>
Fri, 5 Aug 2011 15:24:20 +0000 (15:24 +0000)
and mention in a comment where the non-default function
name can be specified.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1154265 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.xml

index ca6068e9d2d82482e7dae80e04a46f03c7b1844b..2488d1289d5e4b06891fbfd7c16562748acf051c 100644 (file)
@@ -90,7 +90,12 @@ something like this:</p>
 
 require "string"
 
-function handle_something(r)
+--[[ 
+     This is the default method name for Lua handlers, see the optional 
+     function-name in the LuaMapHandler directive to choose a different 
+     entry point.
+--]]
+function handle(r)
     r.content_type = "text/plain"
     r:puts("Hello Lua World!\n")