Is modlua.org down?

2017-06-24 Thread Mark Taylor
http://www.modlua.org has a message, https://www.modlua.org has apache paste bucket? The site was a valuable source of information, it's a shame to lose it! -Mark

Re: mod_lua parsebody multipart form filename

2016-07-10 Thread Mark Taylor
(filename)) { req_aprtable2luatable_cb_len(L, "filename", filename, strlen(filename)); } On Sat, Jul 9, 2016 at 10:26 PM, Mark Taylor <mtt...@gmail.com> wrote: > Hi, > > I'm using mod_lua and doing file upload. Works fine, except I can't figure > out how to get t

mod_lua parsebody multipart form filename

2016-07-09 Thread Mark Taylor
Hi, I'm using mod_lua and doing file upload. Works fine, except I can't figure out how to get the filename. I tried getting the header directly but it doesn't seem to be in headers_in, ie this returns nil: r.headers_in['Content-Disposition'] Content-Disposition: form-data; name="file_upload";

mod_lua LuaHookAccessChecker not working

2016-03-18 Thread Mark Taylor
Hi, I'm trying to use LuaHookAccessChecker but with the config below I am able to access everything under "/", including example.lua httpd.conf: LuaHookAccessChecker /usr/local/apache/htdocs/access.lua access_check SetHandler lua-script /usr/local/apache/htdocs/access.lua:

Re: dlopen a .so from a module

2016-01-07 Thread Mark Taylor
book a while back, it's really a hell of a thing, thanks for writing it! -Mark On Thu, Jan 7, 2016 at 12:16 AM, Nick Kew <n...@apache.org> wrote: > On Wed, 2016-01-06 at 21:30 -0600, Mark Taylor wrote: > > Hi all, > > > > I have a module that dlopens a .so, gets a han

dlopen a .so from a module

2016-01-06 Thread Mark Taylor
Hi all, I have a module that dlopens a .so, gets a handle to a function in the so and calls it. The function in the so calls ap_rputs. dlopen returns the error 'undefined symbol ap_rputs'. nm tells me ap_rputs is defined in httpd, and via some dark magic, httpd symbols are available to modules

mod_lua r:regex pattern strings

2015-12-03 Thread Mark Taylor
Hi all, I spent some time trying to figure out why 'something/(\w+)' wasn't matching my uri, but [[something/(\w+)]] does. This, \w is not one of the listed valid escape characters, but does in fact seem to be escaped to something. Does anyone have an explanation for this behavior? Is it simply

Re: mod_lua unable to delete cookie

2015-09-04 Thread Mark Taylor
s given, and if 0, then it's not written. > Set it to the past using os.time instead: > > r:setcookie{ > key = 'foobar', > value = 'blah', > expipres = os.time() - 1 > } > > With regards, > Daniel. > > On 09/03/2015 03:51 PM, Mark Taylor wrote: > >

mod_lua unable to delete cookie

2015-09-03 Thread Mark Taylor
Calling setcookie(..) with expires=0 does not set expires to the epoch time on the client. To delete a cookie client side, conventional wisdom is to set expires to the epoch time: http://stackoverflow.com/questions/5285940/correct-way-to-delete-cookies-server-side When setting expires=0 in

Re: Linking sqlite in to apache module

2015-07-13 Thread Mark Taylor
One thing you should be concerned about when compiling your module with dependencies is, how are the dependencies linked? Static or dynamic? I see nothing to indicate the uuid and sqlite3 libs were linkded statically, so they would have to be somewhere httpd can find them at run time (dynmaic

Re: The requested URL /as was not found on this server.

2015-07-10 Thread Mark Taylor
I believe the issue is here: SetHandler example_module It may be the case that the string in request_rec.handler is set to the value from SetHandler in the conf. if (!r-handler || strcmp(r-handler, example-handler)) return (DECLINED); You might try: SetHandler example-handler Seems like the

mod_lua LuaHookAuthChecker not working

2015-05-14 Thread Mark Taylor
Hi, I'm having trouble getting mod_lua LuaHookAuthChecker to work. with these examples, it displays ' httpd.conf: LoadModule lua_module modules/mod_lua.so

Re: mod_authz_dbd question

2015-05-05 Thread Mark Taylor
. Check out the expansion of these macros in apr_hooks.h: APR_DECLARE_EXTERNAL_HOOK APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL I am not sure how usable this def is, since authz_dbd.h doesn't seem to be a public/installed header. On Mon, May 4, 2015 at 4:27 PM, Mark Taylor mtt...@gmail.com wrote

mod_authz_dbd question

2015-05-04 Thread Mark Taylor
Hi, I'm researching mod_authz_dbd.c and looking at the authz_dbd_login() function. Near its end, this function calls authz_dbd_run_client_login(), but I can't find where this function is defined: httpd-2.4.12# grep -r authz_dbd_run_client_login . returns no results other than

Re: Best practice for handling synchronous signals SIGFPE etc

2015-05-01 Thread Mark Taylor
Great information, thanks all! -Mark On Mon, Apr 20, 2015 at 6:15 PM, Sorin Manolache sor...@gmail.com wrote: On 2015-04-20 21:50, Mark Taylor wrote: I found that ./server/mpm_unix.c is registering a handler (sig_coredump) for SIGFPE, SIGSEGV, and other synchronous signals. I'd like

Best practice for handling synchronous signals SIGFPE etc

2015-04-20 Thread Mark Taylor
I found that ./server/mpm_unix.c is registering a handler (sig_coredump) for SIGFPE, SIGSEGV, and other synchronous signals. I'd like to handle at least these two in my module, using my own handler. But then how do I determine if the the handler is called on a request thread or a server thread?