From: Christophe Jaillet Date: Sat, 5 Sep 2015 06:34:02 +0000 (+0000) Subject: Fix typo spotted in comment in online doc. [comment #4454) X-Git-Tag: 2.5.0-alpha~2867 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58c4db6a9b6ac15bb708ae93a01e40a483f4c758;p=thirdparty%2Fapache%2Fhttpd.git Fix typo spotted in comment in online doc. [comment #4454) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701349 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/developer/lua.xml b/docs/manual/developer/lua.xml index 68707159873..3cd23374d80 100644 --- a/docs/manual/developer/lua.xml +++ b/docs/manual/developer/lua.xml @@ -76,7 +76,7 @@ that every call to a Lua script will spawn a new Lua state that handles that script and is destroyed immediately after. This option keeps the memory footprint of mod_lua low, but also affects the processing speed of a request. If you have the memory to spare, you can set the scope to thread, -which will make mod_lua spawn a Lua state that lasts the entirity of a thread's +which will make mod_lua spawn a Lua state that lasts the entirety of a thread's lifetime, speeding up request processing by 2-3 times. Since mod_lua will create a state for each script, this may be an expensive move, memory-wise, so to compromise between speed and memory usage, you can choose the server @@ -218,7 +218,7 @@ function remap(r) -- browse through the rewrite map for key, entry in pairs(map) do -- Match source regex against URI - local match = apache2.regex(r, entry.source, r.uri) then + local match = r:regex(entry.source, r.uri) then if match and match[0] then r.filename = interpolateString(entry.destination, match) -- Is this a proxied remap? diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml index 05e50cb1975..d6451f9c089 100644 --- a/docs/manual/mod/mod_lua.xml +++ b/docs/manual/mod/mod_lua.xml @@ -126,7 +126,7 @@ function handle(r) -- use our own Error contents r:puts("Unsupported HTTP method " .. r.method) r.status = 405 - return apache2.ok + return apache2.OK else -- use the ErrorDocument return 501