Brian's Waste of Time

Sun, 16 Mar 2008

mod_wombat and the GSoC

Nathan wrote up a great blog post about thoughts for working on mod_wombat (Lua in Apache) for this coming Google Summer of Code. I'd be extremely excited (along with Nathan and Matthew, I suspect) to mentor someone on it if it sounds exciting to folks out there :-)

0 writebacks [/src/wombat] permanent link

Thu, 15 Nov 2007

mod_wombat talk

Slides from my talk on mod_wombat :-) at ApacheCon. Talk went well, but I tried to squeze in too much material. Had pointed out to me that mod_perl isn't as good as I thought it was, it needs multiple interpreters in threaded MPMs. mod_wombat is actually way more useful and important than even I thought as that leaves... nothing except maybe mod_tcl for doing the micro-module stuff in worker or event.

1 writebacks [/src/wombat] permanent link

Thu, 12 Oct 2006

Apache HTTPD Config

So I have been stealing spare moments to hack up apache+lua stuff here at ApacheCon and I'm adding config stuff now, so I wanted to strip down the httpd.conf to keep it sane. As a lot of people complain that apache's config files are... verbose I had to post the one I am running on right now ;-)

ServerRoot "/Users/brianm/.opt/httpd-2.2.3-worker-for-lua"
Listen 8000

LoadModule apreq_module modules/mod_apreq2.so
LoadModule wombat_module modules/mod_wombat.so

Alias /testy /Users/brianm/src/wombat/htdocs/test.lua
AddHandler lua-script /Users/brianm/src/wombat/htdocs/test.lua

LuaPackagePath /Users/brianm/src/wombat/test/lib/?.lua
LuaPackagePath /Users/brianm/src/wombat/test/lib/?/init.lua
LuaPackagePath /Users/brianm/src/wombat/test/lib/?.so

That's it, and of the nine lines, the two LoadModule lines are for loading mod_wombat (my lua fun) and libapreq which it uses for parsing request stuff. Three of the lines are for adding paths to lua's package.path search path (equivalent of $: or CLASSPATH), one is for creating an alias and specifying the handler for my test script.

Fun!

0 writebacks [/src/wombat] permanent link