You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2015/09/05 08:34:02 UTC
svn commit: r1701349 - in /httpd/httpd/trunk/docs/manual: developer/lua.xml
mod/mod_lua.xml
Author: jailletc36
Date: Sat Sep 5 06:34:02 2015
New Revision: 1701349
URL: http://svn.apache.org/r1701349
Log:
Fix typo spotted in comment in online doc. [comment #4454)
Modified:
httpd/httpd/trunk/docs/manual/developer/lua.xml
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
Modified: httpd/httpd/trunk/docs/manual/developer/lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/developer/lua.xml?rev=1701349&r1=1701348&r2=1701349&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/developer/lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/developer/lua.xml Sat Sep 5 06:34:02 2015
@@ -76,7 +76,7 @@ that every call to a Lua script will spa
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 <code>thread</code>,
-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 <code>server</code>
@@ -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?
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml?rev=1701349&r1=1701348&r2=1701349&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml Sat Sep 5 06:34:02 2015
@@ -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