1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-11 02:42:23 +03:00
Commit Graph

80 Commits

Author SHA1 Message Date
Daniel Gruno
b5021501d1 fix mysql connection string in example
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433346 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 10:43:44 +00:00
Rich Bowen
0573b3b0da Fix xml validation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430656 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 01:56:35 +00:00
Daniel Gruno
a8d7e19070 Rephrasing a bit of the database docs for mod_lua
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430472 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 19:55:34 +00:00
Daniel Gruno
0e04ce5529 Add database features for mod_lua (apr_dbd + mod_dbd).
See documentation update for API and examples.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1430225 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 11:42:50 +00:00
Daniel Gruno
3b6cdb0f92 mod_lua: Add a lot of core httpd/apr functionality to mod_lua
(such as regex matching, expr evaluation, changing/fetching server configuration/info - see docs for a complete list).
This also includes a bunch of automatically scraped functions, which may or may not be super useful.
Comments appreciated as always, especially on the more hacky bits.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1420377 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 20:08:24 +00:00
Daniel Gruno
edf0f80ad9 Rearranging a section so validate-xml will stay happy (for whatever reason)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1377592 13f79535-47bb-0310-9956-ffa450edef68
2012-08-27 07:29:31 +00:00
Daniel Gruno
58e7c2a350 Add new directives, LuaInputFilter/LuaOutputFilter for creating content filters using Lua.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1377475 13f79535-47bb-0310-9956-ffa450edef68
2012-08-26 18:39:58 +00:00
Daniel Gruno
36ad46c3b6 Updates:
- Authz provider is available in 2.4.3 and later
- Fix whitespace issues

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1375917 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 07:47:27 +00:00
Daniel Gruno
0a52bedb7b elaborate on how r:parsebody() works
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1375910 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 07:35:30 +00:00
Daniel Gruno
edb87647cb Add some info on the LuaQuickHandler directive, instead of just having '...'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1372988 13f79535-47bb-0310-9956-ffa450edef68
2012-08-14 17:24:43 +00:00
Daniel Gruno
5e540caeac grammar fix
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1372445 13f79535-47bb-0310-9956-ffa450edef68
2012-08-13 14:26:49 +00:00
Daniel Gruno
4bef1b173a fix some grammar
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370492 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 20:13:30 +00:00
Daniel Gruno
2e9e74fd6c mod_lua: Add r:flush, r:sendfile as well as additional request information in the request_rec structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1370158 13f79535-47bb-0310-9956-ffa450edef68
2012-08-07 10:02:27 +00:00
Daniel Gruno
ae21c9f99e LuaAuthzProvider also gets passed the args from the Require directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369769 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 10:14:38 +00:00
Daniel Gruno
284dc4ee6c Fix some typos and wordings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369696 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 22:24:17 +00:00
Daniel Gruno
ed77e8227d Add some information about the thread and server values in LuaScope
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369659 13f79535-47bb-0310-9956-ffa450edef68
2012-08-05 20:07:13 +00:00
Jeff Trawick
d89e08873d fix syntax error
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1369299 13f79535-47bb-0310-9956-ffa450edef68
2012-08-04 12:10:15 +00:00
Daniel Gruno
1b7d27af23 Fix up the order of hooks and separate auth and access hooks.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1368959 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 13:53:20 +00:00
Daniel Gruno
4a8a0f5636 Add some missing values
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1368642 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 18:51:05 +00:00
Daniel Gruno
1866c2757c Add some more information about which request phases are available for hooking, and what they do.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1368416 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 11:09:58 +00:00
Daniel Gruno
f985f4cd71 - Add some information about the fields in the request_rec structure
- Add r.is_https to the list of fields
- Add r:escape_html to the list of function calls

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1368377 13f79535-47bb-0310-9956-ffa450edef68
2012-08-02 08:13:54 +00:00
Daniel Gruno
a976756441 Add some info about what LuaHookTypeChecker could be used for (other ideas are most welcome)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1368232 13f79535-47bb-0310-9956-ffa450edef68
2012-08-01 20:13:04 +00:00
Daniel Gruno
75723be6b7 Fix up some contradictory contexts
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1368204 13f79535-47bb-0310-9956-ffa450edef68
2012-08-01 19:21:57 +00:00
Daniel Gruno
367fcc4182 Remove [max|min max] from the LuaScope syntax, since the 'server' scope is not implemented yet.
Note that 'thread' only applies to threaded MPMs

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367590 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 14:56:59 +00:00
Daniel Gruno
ea71351b89 fix some xml errors
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367511 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 12:01:45 +00:00
Daniel Gruno
b58c0e9780 Add some examples for LuaHookMapToStorage and LuaAuthzProvider
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367506 13f79535-47bb-0310-9956-ffa450edef68
2012-07-31 11:52:42 +00:00
Daniel Gruno
a2706446eb Missing an 'a' in the new warning.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367300 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 21:09:41 +00:00
Daniel Gruno
06908f5582 b -> strong
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367082 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 13:33:57 +00:00
Daniel Gruno
732e6f4139 Add a security notice about using mod_lua on shared hosting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1367081 13f79535-47bb-0310-9956-ffa450edef68
2012-07-30 13:31:28 +00:00
Daniel Gruno
e69eb628f7 uncomment LuaCodeCache directive
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1366891 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 19:08:18 +00:00
Daniel Gruno
01506da2a5 LuaQuickHandler had no syntax, which made the reference sheet look wrong.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1366862 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 15:58:47 +00:00
Daniel Gruno
4611926a78 Comment out LuaCodeCache, which hasn't been implemented yet.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1366859 13f79535-47bb-0310-9956-ffa450edef68
2012-07-29 15:49:52 +00:00
Daniel Gruno
e4c48bcba8 LuaScope also has a 'thread' value.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1365950 13f79535-47bb-0310-9956-ffa450edef68
2012-07-26 11:32:32 +00:00
Daniel Gruno
38699ac336 Remove reference to the 'server' value in LuaScope, since it doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1365288 13f79535-47bb-0310-9956-ffa450edef68
2012-07-24 21:12:39 +00:00
Daniel Gruno
cd9edaa58e Fix titles of examples
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1355934 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 15:34:18 +00:00
Daniel Gruno
018a00fa07 Re-add r:parsebody() as a valid function
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1355929 13f79535-47bb-0310-9956-ffa450edef68
2012-07-01 15:19:14 +00:00
Daniel Gruno
377ab6e9a4 Add back the parsebody reference in the handler example.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1352048 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 11:24:28 +00:00
Stefan Fritsch
99d37b2e33 Add new directive LuaAuthzProvider to allow implementing an
authorization provider in lua


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351020 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:51:19 +00:00
Stefan Fritsch
32f5f54c25 mod_lua: Add a few missing request_rec fields. Rename remote_ip to
client_ip to match conn_rec


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351014 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:41:01 +00:00
Daniel Gruno
675c033e6a Comment out unsupported function calls.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1345917 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 11:16:00 +00:00
Daniel Gruno
43ccb0bcf3 Add newlines to example output
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1342157 13f79535-47bb-0310-9956-ffa450edef68
2012-05-24 07:03:56 +00:00
Daniel Gruno
64bf117160 typo fix (/w+ should be \w+)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331691 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 06:40:14 +00:00
Daniel Gruno
30d1e858a9 Some final tweaks to the mod_lua doc
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331240 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 06:28:03 +00:00
Daniel Gruno
5e39d4b16a Syntax updates for mod_l*.xml
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331035 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 19:14:27 +00:00
Daniel Gruno
6f118da1ae Highlight Lua source code
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330137 13f79535-47bb-0310-9956-ffa450edef68
2012-04-25 07:36:17 +00:00
Rainer Jung
13fd08da11 Sync docs with 2.4.x.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1238738 13f79535-47bb-0310-9956-ffa450edef68
2012-01-31 18:38:02 +00:00
Stefan Fritsch
7aecef792e Make it more explicit that mod_lua may change in 2.4.x
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1205542 13f79535-47bb-0310-9956-ffa450edef68
2011-11-23 19:40:21 +00:00
Stefan Fritsch
65d256c3ba Fix xml
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1202453 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 22:49:14 +00:00
Eric Covener
b53e38b314 add per-dir config merging to mod_lua so LuaHook* in multiple per-dir sections
behaves as expected instead of discarding previous sections.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201443 13f79535-47bb-0310-9956-ffa450edef68
2011-11-13 15:48:06 +00:00
Rich Bowen
e625d65bf7 Make the contextlist agree with the comment in the doc itself.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200514 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 20:04:05 +00:00