Configuring Lighttpd to use MoinMoin via FastCGI

From: http://johnleach.co.uk/words/archives/2007/07/29/275/

Lighttpd 1.4

MoinMoin is listening in FastCGI mode on port 22000.

  $HTTP["url"] =~ "^/wiki" {
    fastcgi.server =  ("/wiki" => ( "mywiki" =>
      ( "host" => "127.0.0.1",
        "port" => 22000,
        "check-local" => "disable",
        "broken-scriptfilename" => "enable" )
      ))
  }

Lighttpd 1.5

MoinMoin is listening in FastCGI mode on port 22000.

 $HTTP["url"] =~ "^/wiki" {
    proxy-core.protocol = "fastcgi"
    proxy-core.backends = ( "127.0.0.1:22000" )
    proxy-core.rewrite-request = (
      "_pathinfo" => ( "^/wiki(/.*)" => "$1" ),
      "_scriptname" => ( "^(/wiki)" => "$1" )
    )
  }

MoinMoin: HelpOnConfiguration/IntegratingWithLighttpd (last edited 2009-07-05 07:49:16 by ReimarBauer)