ServerRoot "/opt/httpd-2.2.4" DocumentRoot "/opt/httpd-2.2.4/htdocs" Listen 8000 LoadModule apreq_module modules/mod_apreq2.so LoadModule wombat_module modules/mod_wombat.so # Base path used to resolve relative paths within mod_wombat LuaRoot /var/www AddHandler lua-script .lua Alias /testy /var/www/scripts/test.lua AddHandler lua-script /var/www/scripts/test.lua # invokes handle function AddHandler lua-script other_test.lua # invokes handle function # Directive uri file to load (optional) function LuaMapHandler /foo /var/www/scripts/test.lua handle_foo LuaMapHandler /bar scripts/test.lua handle_bar # As above but using regex substitution to map to a file and function LuaMapHandler /(\w+)/(\w+) scripts/app/$1.lua $2 # Directive File Function LuaHookTranslateName conf/hooks.lua my_name_munger LuaHookFixups conf/hooks.lua my_fixup_thingie DefaultType text/plain # stat is the default if there is no LuaCodeCache directive # stat | forever | never LuaCodeCache stat ErrorLog logs/error_log LogLevel debug