Stefan Fritsch
8c960a8c15
Various code clean up
...
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 52893
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361801 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 21:14:00 +00:00
Rainer Jung
bfbbc819d5
Add missing HTTP status codes taken from
...
http://www.iana.org/assignments/http-status-codes/http-status-codes.xml
The new codes are now known and some canned error
strings are provided. The web server does not yet actually
produce them in responses or reacts on getting them
from an origin server when acting as a proxy or gateway.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361784 13f79535-47bb-0310-9956-ffa450edef68
2012-07-15 20:22:03 +00:00
Daniel Gruno
f921f8cbde
- Define LUA_COMPAT_ALL so mod_lua will be compatible with Lua 5.2
...
- Add an optional integer argument for parsebody, specifying the maximum size of POST that will be accepted.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361298 13f79535-47bb-0310-9956-ffa450edef68
2012-07-13 16:59:07 +00:00
Daniel Gruno
68bbfde6ea
Add the missing parsebody function to mod_lua, for parsing POST data.
...
PR 53064.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1352047 13f79535-47bb-0310-9956-ffa450edef68
2012-06-20 11:20:36 +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
2385ef2c2f
use macro to make definition of integer fields more compact
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351019 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:47:48 +00:00
Stefan Fritsch
d7ed5d0ed6
factor common code into utility function
...
also improve logging a bit and adjust some log levels
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351018 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:46:30 +00:00
Stefan Fritsch
cbb93c651b
change various strings from char * to const char *
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351017 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:45:33 +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
Stefan Fritsch
eca6d64df0
allow tail call optimization in log methods, remove foo method
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351013 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:39:54 +00:00
Stefan Fritsch
ca02d628a6
Change prototype of vm_construct, to work around gcc bug which
...
causes a segfault.
PR: 52779
Submitted by: Dick Snippe <Dick Snippe tech omroep nl>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351012 13f79535-47bb-0310-9956-ffa450edef68
2012-06-16 22:38:58 +00:00
André Malo
a11c89f232
fix various property issues
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1309567 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 19:49:25 +00:00
Stefan Fritsch
7b8c246611
Be more verbose when logging syntax errors
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1305586 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 20:59:11 +00:00
Stefan Fritsch
03a8b1b4c2
Fix some typos
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1300766 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 22:21:50 +00:00
Rainer Jung
7b167c68d3
Remove luaL_reg macro definition no longer needed
...
and simplify lua_load compatibility macro.
Note that in order to successfully compile with
Lua 5.2.0 we still need to add LUA_COMPAT_ALL
to CPPFLAGS. Detection in config.m4 is still
missing.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239030 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 09:51:59 +00:00
Rainer Jung
d0257e2db8
luaL_reg was already deprecated in Lua 5.1.4.
...
It is gone in Lua 5.2.0 and was replaced by luaL_Reg
which already existed in 5.1.4. So use that one..
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239029 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 09:50:14 +00:00
Guenter Knauf
3db3bf501c
Make mod_lua compile with lua 5.2.x.
...
MOdified patch submitted by NormW (nornw gknw net).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1221205 13f79535-47bb-0310-9956-ffa450edef68
2011-12-20 11:27:43 +00:00
Stefan Fritsch
76f782e188
Various code cleanup to avoid compiler, cppcheck, or clang warnings:
...
modules/debugging/mod_firehose.c: Make some internal functions static
(to do: logs_cleanup() is unused)
modules/filters/mod_charset_lite.c: Remove dead assignments
modules/filters/mod_include.c: likewise
modules/metadata/mod_usertrack.c: likewise
modules/proxy/mod_proxy_ftp.c: likewise
modules/ssl/ssl_engine_pphrase.c: likewise
modules/proxy/mod_proxy_balancer.c: likewise;
Remove NULL check that can never happen
modules/proxy/proxy_util.c: Axe NULL-check that can never happen and if it
would, it would just mask another bug
os/unix/unixd.c: likewise
modules/http/http_filters.c: Remove sub-condition that is always true
modules/lua/mod_lua.c: Add default cases to switch statements
modules/generators/mod_autoindex.c: Unsigned value can never be < 0
server/util_expr_eval.c: Fix compiler warnings with VC and on OS2
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220493 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 17:52:59 +00:00
Stefan Fritsch
b9dacea0ea
remove some dead code
...
found by clang statical analyzer
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220462 13f79535-47bb-0310-9956-ffa450edef68
2011-12-18 17:25:40 +00:00
Graham Leggett
cb21a0dbcc
Further clarify the naming of the entity that directly connects to us by
...
calling that entity a client instead of a peer.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1214015 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 01:10:52 +00:00
Stefan Fritsch
92e366007c
Add lots of unique tags to error log messages
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 23:02:04 +00:00
Graham Leggett
394e5594d6
Introduce a per connection "peer_ip" and a per request "client_ip" to
...
distinguish between the raw IP address of the connection and the effective
IP address of the request.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206291 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 19:42:04 +00:00
Jeff Trawick
582674a462
remove lingering reslist cruft
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1203632 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 12:59:36 +00:00
Eric Covener
f2a7fff9ae
add some todos from my apachecon notes
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201460 13f79535-47bb-0310-9956-ffa450edef68
2011-11-13 17:10:03 +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
Rainer Jung
24b66f8823
Use the right lua scope when used as a hook.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201042 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 20:22:08 +00:00
Eric Covener
727cca9fdb
don't let thread-scope be selected in a server w/o threads
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200977 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 17:30:18 +00:00
Eric Covener
45b5bfb549
C99 and unused variable warnings
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200975 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 17:27:06 +00:00
Brian McCallister
bed1f11a32
use a sub-pool for scope_once
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200667 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 00:49:05 +00:00
Brian McCallister
bc7ecfdcf9
replace server scope with thread scope
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200656 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 00:16:56 +00:00
Brian McCallister
49ac1fbeb2
remove lingering reslist references before killing server scope
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200646 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 23:57:57 +00:00
Brian McCallister
1278d68ae7
remove ability to set min and max pool sizes for server scope in prep for removing server scope
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200639 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 23:54:00 +00:00
Brian McCallister
db8040ed4f
remove some debug logging which snuck in
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200614 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 23:13:08 +00:00
Joe Orton
48a5e0390d
* modules/lua/mod_lua.c (ap_lua_ssl_is_https): New function.
...
(lua_post_config): Pick up ssl_is_https optional function.
* modules/lua/lua_request.c (req_ssl_is_https_field): New function.
(ap_lua_load_request): Map is_https field to above.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200580 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 21:45:27 +00:00
Brian McCallister
5eb6753e25
remove last traces of the code cache
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200513 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 20:02:07 +00:00
Brian McCallister
1cedf45414
fix issue with incorrect munging of the lua package path -- LuaPackagePath directives were not working
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200475 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 18:48:50 +00:00
Eric Covener
e66f481ac3
expose r:trace1-8
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200432 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 17:10:17 +00:00
Eric Covener
2fb4d8c18f
ap_check_cmd_context checks don't work on the block forms
...
of the lua directives.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200204 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 07:30:55 +00:00
Gregg Lewis Smith
1bc9c909bb
since mod_ssl.h is now included, tell compiler where to find it
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200037 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 23:29:45 +00:00
Guenter Knauf
bfe80971d2
Fixed NetWare build.
...
Patch submitted by: normw gknw net.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200035 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 23:21:13 +00:00
Eric Covener
2af550c8c9
mod_lua: Expose SSL variables via r:ssl_var_lookup()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199056 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 01:53:15 +00:00
Eric Covener
d63996c35d
allow some lua hooks to be run in "early" or "late" mode
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199031 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 00:36:03 +00:00
Eric Covener
eaffe604d0
correct return val, the char* is pushed on the lua stack.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199028 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 00:25:47 +00:00
Eric Covener
629d9075cb
quick handlers and translate_name in lua can't be keyed off
...
Directory/Filename/htaccess
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197853 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 01:08:05 +00:00
Eric Covener
9143f29d2d
provide ap_escape_html as r:escape_html()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197838 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 00:16:36 +00:00
Eric Covener
bb2c7989ea
get the hello world of Handlers working again
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1197782 13f79535-47bb-0310-9956-ffa450edef68
2011-11-04 21:17:57 +00:00
Eric Covener
214b8e88b0
make r.handler and r.proxyreq readable too
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195172 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:39:20 +00:00
Eric Covener
1abbc00118
add constants for PROXYREQ_* to the apache2 global, allow r.proxyreq and
...
r.handler to be writable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195168 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:30:04 +00:00
Eric Covener
89b65554be
alphabetize writable lua properties and use strcmp() for the oddball that's
...
just testing quality of "user".
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1195167 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:19:45 +00:00
Eric Covener
70ebce981b
make r.args read/write for rewrite refugees.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1194997 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 19:42:32 +00:00