Search

Friends

Atomspheric CO2 (PPM)

Archives

Blather

Uptime verified by Wormly.com

27 March 2006

Mailman with Lighttpd and mod_cgi

I've just got mailman working with lighttpd and mod_cgi (using mod_rewrite and mod_alias as well). As far as I know, it doesn't work with mod_fcgi (FastCGI).

I had to edit "Mailman.py" to make it listen to my mm.DEFAULT_URL value. I put self.web_page_url = mm_cfg.DEFAULT_URL at the top of CheckValues().

The url.rewrite line redirects "/", "/mailman" and "/mailman/" all to "/mailman/listinfo".

server.modules = ("mod_rewrite", "mod_cgi", "mod_alias", "mod_rewrite")
$HTTP["host"] == "lists.sol1.net" {
   $HTTP["url"] =~ "^/mailman/" {
      cgi.assign = ( "" => "" )
      alias.url = ( "/mailman/" => "/usr/lib/mailman/cgi-bin/" )
   }

   $HTTP["url"] =~ "^/doc/" {
      alias.url = ( "/doc/mailman/" => "/usr/share/doc/mailman/" )
   }
   url.rewrite = ( "^/(mailman(/)?)?$" => "/mailman/listinfo" )
}

Comments

  1. Hah! Thanks, I was looking to set this up on my lighttpd server; cheers for sharing the magic to make it work.

    Grahame Bowland / 2:53am / 10 July 2006

  2. Good times, your lighty config tidbits were very helpful. Many thanks.

    Tim Welch / 9:38am / 24 July 2006

  3. thanx mate! helped alot :)

    phaidros / 11:36am / 27 February 2008

Leave a comment

Markdown

0.111 seconds