httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: Dynamic configuration for the hackathon?
Date Thu, 27 Mar 2008 13:00:12 GMT
On Thu, 27 Mar 2008 08:17:01 -0400
"Akins, Brian" <Brian.Akins@turner.com> wrote:

> On 3/27/08 3:58 AM, "Torsten Foertsch" <torsten.foertsch@gmx.net>
> wrote:
> 
> >  So I was going to reimplement it based on mod_wombat some
> > time this year.
> 
> 
> The nice thing about lua, in addition to being lightweight, is that
> most of the url mapping/rewriting can be simple lua statements.
> 
> <Lua fixups>
> if string.match(r.uri, '/something') then
>      r.filename = '/www/that/path'
> end
> </Lua>

Fine for users who want to hack their own server.  Like <Perl>.

But r.filename is the kind of innards we really don't want
to expose to the typical mod_rewrite user!

> And if the more "complicated" modules had a little lua "glue":
> 
> if string.match(r.uri, '/something') then
>      mod_cache:cacheable( r )
> end

A fine recipe for users shooting themselves in the foot, PHP-style.
How would you propose to make that work without hackage to
existing modules?

> If one were so inclined, the entire configuration could be lua.  Just
> define and register these functions that need to run per request.

That'll go alongside DrBacchus's "You can do everything with
mod_rewrite" :-)

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Mime
View raw message