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
(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
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";
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:
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
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
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
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:
> >
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
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
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
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
.
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
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
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
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?
16 matches
Mail list logo