From b5bcab2d1594889f93d6f9c698e6b3bd17bf7ef3 Mon Sep 17 00:00:00 2001
From: Daniel Gruno
-Adds an output filter to the request
-
-Arguments:
-
-Example:
- Example 5: Overlays using LuaMapHandler
-LuaMaphandler ^/portal/([a-z]+)/ /path/to/lua/script.lua handle_$1
+LuaMapHandler ^/portal/([a-z]+)/ /path/to/lua/script.lua handle_$1
@@ -831,10 +831,6 @@ print(unescaped) -- prints "This is a test"
apache2.port
-apache2.getenv
-
-apache2.setenv
-
apache2.options
apache2.allowoverrides
@@ -843,8 +839,6 @@ print(unescaped) -- prints "This is a test"
apache2.add_input_filter
-apache2.add_output_filter
-
apache2.get_basic_auth_pw
apache2.get_limit_req_body
@@ -855,12 +849,10 @@ print(unescaped) -- prints "This is a test"
apache2.some_auth_required
-apache2.context_document_root
-
-apache2.context_prefix
-
apache2.set_context_prefix
+apache2.get_server_name_for_url
+
apache2.set_keepalive
apache2.make_etag
@@ -912,40 +904,6 @@ apache2.add_input_filter(r, "SPAM_FILTER") -- Check input for spam..?
apache2.add_output_filter(
- request_rec r, string filter
- )
-
-
-
-
-
-
-Argument
-Description
-
-
-r
-The mod_lua request handle
-
-
-filter
-The name of the filter handler to add
-
-apache2.add_input_filter(r, "INCLUDES") -- Turn out output into an SSI-enabled document.
-
-
-apache2.allowoverrides(
request_rec r
)
@@ -1040,52 +998,6 @@ The current Authorization type used in the request
-
-Get the context_document_root for a request. This is a generalization of the document root, which is too limited in the presence of mappers like mod_userdir and mod_alias. The context_document_root is the directory on disk that maps to the context_prefix URI prefix. -
--Arguments: -
-Argument | -Description | -
---|---|
r | -The mod_lua request handle | -
- -
-Get the context_prefix for a request. The context_prefix URI prefix maps to the context_document_root on disk. -
--Arguments: -
-Argument | -Description | -
---|---|
r | -The mod_lua request handle | -
-
Arguments:
-None
+Argument | +Description | +
---|---|
r | +The mod_lua request handle | +
Return value(s):
@@ -1208,13 +1129,14 @@ r:puts("The ServerName is set to: ", name)
-
-Returns the value of an environment variable +Get the current server name from the request for the purposes of using in a URL. +If the server name is an IPv6 literal address, it will be returned in URL format (e.g., "[fe80::1]").
Arguments: @@ -1228,26 +1150,7 @@ Returns the value of an environment variable
-Return value(s):
-
-The queried value
-
-Example: -
--local env = apache2.getenv("HTTP_HOST") -if env and env:len() > 0 then - r:puts("HTTP_HOST equals ", env) -end --
@@ -1428,10 +1335,10 @@ The number of bytes written if a filename was specified, otherwise it returns th
if tonumber(r.headers_in['Content-Length'] or 0) < 10000 then - local smallfile = apache2.requestbody(r) -- fetch a small file into memory + local smallfile = apache2.requestbody(r, 10000) -- fetch a small file into memory r:puts("I saved the uploaded file in memory") else - local read = apache2.requestbody(r, "/path/to/tmp") + local read = apache2.requestbody(r, 0, "/path/to/tmp") r:puts("I saved the uploaded file in a temp directory. Total bytes written was: ", read) end@@ -1640,44 +1547,6 @@ True if keepalive can be set, false otherwise
-
-Sets the value of an environment variable -
--Arguments: -
-Argument | -Description | -
---|---|
r | -The mod_lua request handle | -
key | -key | -
val | -val | -
-Example: -
--apache2.setenv("FOO_VAL", "bar and stuff") -- -
-
if apache2.expr("%{REQUEST_URI} =~ /force-gzip") then - apache2.add_output_filter(r, "DEFLATE") + r:addoutputfilter("DEFLATE") end@@ -2360,7 +2229,7 @@ Kills off a server process. This has no other use than to show how dangerous mod
-Opens up a new database connection. +Opens up a new database connection. See the DB functions for mod_pLua for more info on this.
Arguments: diff --git a/docs/manual/howto/htaccess.html.en b/docs/manual/howto/htaccess.html.en index f58b212c41..9aa6947aeb 100644 --- a/docs/manual/howto/htaccess.html.en +++ b/docs/manual/howto/htaccess.html.en @@ -43,7 +43,7 @@ changes on a per-directory basis.
Related Modules | Related Directives |
---|---|
Related Modules | Related Directives |
---|---|
.htaccess
files completely if you have access to
httpd main server config file. Using .htaccess
files slows down your Apache http server.
diff --git a/docs/manual/howto/htaccess.xml.fr b/docs/manual/howto/htaccess.xml.fr
index 73386760fc..d15b3cb62a 100644
--- a/docs/manual/howto/htaccess.xml.fr
+++ b/docs/manual/howto/htaccess.xml.fr
@@ -1,7 +1,7 @@
-
+
diff --git a/docs/manual/howto/htaccess.xml.ja b/docs/manual/howto/htaccess.xml.ja
index 677058cf06..8508ccc005 100644
--- a/docs/manual/howto/htaccess.xml.ja
+++ b/docs/manual/howto/htaccess.xml.ja
@@ -1,7 +1,7 @@
-
+
+
+