Apache mod_lua request_rec problems

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache mod_lua request_rec problems

Chris Houser
Hello all,

I recently signed up for this mailing list and have never used them in the past so I hope I'm using it correctly.

I learned Lua through the Codea ios app and have grown to love it. I've been trying to get mod_lua on an apache server working correctly. Unfortunately there is very little info out there on it's usage. Does anyone have any experience working with apache's mod_lua?  More specifically with the handler's request_rec. Most of the methods listed on http://httpd.apache.org/docs/current/mod/mod_lua.html do not appear to work. I seem to only have access to r:write() and r:puts(). I have not been able to get any of the other listed methods to work. specifically r:md5(), r:parseargs() and r:parsebody()

Thank you,
Chris

Sent from my iPad
Reply | Threaded
Open this post in threaded view
|

Re: Apache mod_lua request_rec problems

Peng Zhicheng
于 2013-11-10 2:52, Chris Houser 写道:

> Hello all,
>
> I recently signed up for this mailing list and have never used them in the past so I hope I'm using it correctly.
>
> I learned Lua through the Codea ios app and have grown to love it. I've been trying to get mod_lua on an apache server working correctly. Unfortunately there is very little info out there on it's usage. Does anyone have any experience working with apache's mod_lua?  More specifically with the handler's request_rec. Most of the methods listed on http://httpd.apache.org/docs/current/mod/mod_lua.html do not appear to work. I seem to only have access to r:write() and r:puts(). I have not been able to get any of the other listed methods to work. specifically r:md5(), r:parseargs() and r:parsebody()
>
> Thank you,
> Chris
>
> Sent from my iPad

What do you mean by "not able to get [some methos] to work"?
What were the error message and/or stack traceback when you invoke them?
Or, did Apache crash?

How did you get and install the Mod for Apache?
What was your configuration for Apache and mod_lua?

More information would help to shot the issues.

I suggest you double check the version of mod_lua and Apache first.



Reply | Threaded
Open this post in threaded view
|

Re: Apache mod_lua request_rec problems

Pierre-Yves Gérardy
In reply to this post by Chris Houser
If you're interested in webdev in general rather than mod_lua in
particular, you may want to look at OpenResty (built around nginx),
which is more mature (as in "used in production at CloudFlare, among
others") and supported.

http://openresty.org/
-- Pierre-Yves


On Sat, Nov 9, 2013 at 7:52 PM, Chris Houser <[hidden email]> wrote:

> Hello all,
>
> I recently signed up for this mailing list and have never used them in the past so I hope I'm using it correctly.
>
> I learned Lua through the Codea ios app and have grown to love it. I've been trying to get mod_lua on an apache server working correctly. Unfortunately there is very little info out there on it's usage. Does anyone have any experience working with apache's mod_lua?  More specifically with the handler's request_rec. Most of the methods listed on http://httpd.apache.org/docs/current/mod/mod_lua.html do not appear to work. I seem to only have access to r:write() and r:puts(). I have not been able to get any of the other listed methods to work. specifically r:md5(), r:parseargs() and r:parsebody()
>
> Thank you,
> Chris
>
> Sent from my iPad