Getting Camping to work with FastCGI is a little clunky, since FastCGI
doesn''t really understand mounting apps and sometimes the environment
vars are a little whack. To keep the postambles easy to read, I''ve
moved the handy stuff into lib/camping/fastcgi.rb.
== Mounting a Single App
Assuming: Camping.goes :Blog ... this goes in your postamble ...
require ''camping/fastcgi''
Camping::FastCGI.start(Blog)
== Mounting Several Apps
require ''camping/fastcgi''
server = Camping::FastCGI.new
server.mount("/blog", Blog)
server.mount("/tepee", Tepee)
server.mount("/", Index)
server.start
For a suitable lighttpd.conf, see the wiki:
http://code.whytheluckystiff.net/camping/wiki/PostAmbles
_why