diff --git a/docs/manual/mod/mod_lua.html.en b/docs/manual/mod/mod_lua.html.en index c9fc6fc6bc..97c8bb5d91 100644 --- a/docs/manual/mod/mod_lua.html.en +++ b/docs/manual/mod/mod_lua.html.en @@ -756,7 +756,7 @@ end
Description: | Provide a hook for the translate name phase of request processing |
---|---|
Syntax: | LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] |
Context: | server config, virtual host, directory |
Context: | server config, virtual host |
Override: | All |
Status: | Experimental |
Module: | mod_lua |
Override: | All |
Status: | Experimental |
Module: | mod_lua |
...
++ This directive provides a hook for the type_checker phase of the request processing. + This phase is where requests are assigned a content type and a handler, and thus can + be used to modify the type and handler based on input: +
++ LuaHookTypeChecker /path/to/lua/script.lua type_checker ++ +
+ function type_checker(r) + if r.uri:match("%.to_gif$") then -- match foo.png.to_gif + r.content_type = "image/gif" -- assign it the image/gif type + r.handler = "gifWizard" -- tell the gifWizard module to handle this + r.filename = r.uri:gsub("%.to_gif$", "") -- fix the filename requested + return apache2.OK + end + + return apache2.DECLINED + end ++ +
Description: | Provide a hook for the quick handler of request processing | ||
---|---|---|---|
Syntax: | LuaQuickHandler /path/to/script.lua hook_function_name | ||
Context: | server config, virtual host, directory, .htaccess | ||
Context: | server config, virtual host | ||
Override: | All | ||
Status: | Experimental | ||
Module: | mod_lua | ||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | svd | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sv | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | svdh | X |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | svdh | X | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | svdh | X | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | svdh | X | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | svdh | X | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sv | X | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | svdh | X | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | svdh | X |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild number | 0 | s | M |
Limit on the number of connections that an individual child server diff --git a/docs/manual/mod/quickreference.html.en b/docs/manual/mod/quickreference.html.en index 658b5ea0ca..e9a115c591 100644 --- a/docs/manual/mod/quickreference.html.en +++ b/docs/manual/mod/quickreference.html.en @@ -588,13 +588,13 @@ matching URLs | |||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | svd | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sv | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | svdh | X |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | svdh | X | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | svdh | X | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | svdh | X | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | svdh | X | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sv | X | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | svdh | X | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | svdh | X |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild number | 0 | s | M |
Limit on the number of connections that an individual child server diff --git a/docs/manual/mod/quickreference.html.es b/docs/manual/mod/quickreference.html.es index f1a367bcc5..78947942a7 100644 --- a/docs/manual/mod/quickreference.html.es +++ b/docs/manual/mod/quickreference.html.es @@ -595,13 +595,13 @@ matching URLs | |||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | svd | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sv | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | svdh | X |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | svdh | X | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | svdh | X | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | svdh | X | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | svdh | X | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sv | X | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | svdh | X | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | svdh | X |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild number | 0 | s | M |
Limit on the number of connections that an individual child server diff --git a/docs/manual/mod/quickreference.html.ja.utf8 b/docs/manual/mod/quickreference.html.ja.utf8 index c4da93482b..c27b963e40 100644 --- a/docs/manual/mod/quickreference.html.ja.utf8 +++ b/docs/manual/mod/quickreference.html.ja.utf8 @@ -561,13 +561,13 @@ Certificate Authority or global client certificates | |||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | svd | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sv | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | svdh | X |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | svdh | X | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | svdh | X | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | svdh | X | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | svdh | X | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sv | X | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | svdh | X | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | svdh | X |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild number | 0 | s | M |
Limit on the number of connections that an individual child server diff --git a/docs/manual/mod/quickreference.html.ko.euc-kr b/docs/manual/mod/quickreference.html.ko.euc-kr index fc17454578..02dd468847 100644 --- a/docs/manual/mod/quickreference.html.ko.euc-kr +++ b/docs/manual/mod/quickreference.html.ko.euc-kr @@ -558,13 +558,13 @@ matching URLs | |||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | svd | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sv | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | svdh | X |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | svdh | X | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | svdh | X | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | svdh | X | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | svdh | X | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sv | X | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | svdh | X | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | svdh | X |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild number | 0 | s | M |
Limit on the number of connections that an individual child server diff --git a/docs/manual/mod/quickreference.html.tr.utf8 b/docs/manual/mod/quickreference.html.tr.utf8 index 3532d9bf9c..08a0f29d49 100644 --- a/docs/manual/mod/quickreference.html.tr.utf8 +++ b/docs/manual/mod/quickreference.html.tr.utf8 @@ -589,13 +589,13 @@ uygulanır. | |||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | skdh | D | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | skdh | D | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | skd | D | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sk | D | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | skdh | D | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | skdh | D |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | skdh | D | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | skdh | D | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | skdh | D | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | skdh | D | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sk | D | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | skdh | D | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | skdh | D |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild sayı | 0 | s | M |
Tek bir çocuk sürecin ömrü boyunca işleme sokabileceği istek diff --git a/docs/manual/mod/quickreference.html.zh-cn b/docs/manual/mod/quickreference.html.zh-cn index a17fd2e957..68419b90b3 100644 --- a/docs/manual/mod/quickreference.html.zh-cn +++ b/docs/manual/mod/quickreference.html.zh-cn @@ -583,13 +583,13 @@ matching URLs | |||
LuaHookInsertFilter /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the insert_filter phase of request processing | |||
LuaHookMapToStorage /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the map_to_storage phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | svd | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTranslateName /path/to/lua/script.lua hook_function_name [early|late] | sv | X | |
Provide a hook for the translate name phase of request processing | |||
LuaHookTypeChecker /path/to/lua/script.lua hook_function_name | svdh | X | |
Provide a hook for the type_checker phase of request processing | |||
LuaInherit none|parent-first|parent-last | parent-first | svdh | X |
Controls how parent configuration sections are merged into children | |||
LuaMapHandler uri-pattern /path/to/lua/script.lua [function-name] | svdh | X | |
Map a path to a lua handler | |||
LuaPackageCPath /path/to/include/?.soa | svdh | X | |
Add a directory to lua's package.cpath | |||
LuaPackagePath /path/to/include/?.lua | svdh | X | |
Add a directory to lua's package.path | |||
LuaQuickHandler /path/to/script.lua hook_function_name | svdh | X | |
Provide a hook for the quick handler of request processing | |||
LuaQuickHandler /path/to/script.lua hook_function_name | sv | X | |
Provide a hook for the quick handler of request processing | |||
LuaRoot /path/to/a/directory | svdh | X | |
Specify the base path for resolving relative paths for mod_lua directives | |||
LuaScope once|request|conn|thread | once | svdh | X |
One of once, request, conn -- default is once | |||
MaxConnectionsPerChild number | 0 | s | M |
Limit on the number of connections that an individual child server |