Project

General

Profile

Actions

Howto mailman » History » Revision 2

« Previous | Revision 2/3 (diff) | Next »
stbuehler, 2011-10-10 14:15
new config syntax


Howto mailman

mailman is free software for managing electronic mail discussion and e-newsletter lists. You need a FastCGI CGI wrapper running (see Howto_CGI).

Lighttpd config

setup {
    module.load ( "mod_fastcgi", "mod_vhost" );
}

var.vhosts = [];

# ...

var.vhosts = var.vhosts + [
    "lists.example.com" => {
        alias (
            ("/mailman/", "/usr/lib/cgi-bin/mailman"),
            ("/pipermail/", "/var/lib/mailman/archives/public"),
            ("/images/mailman/", "/usr/share/images/mailman")
        );
        if req.path =^ "/mailman/" {
            pathinfo;
            fastcgi "unix:/var/run/lighttpd/www-data-cgi.sock";
        } else if req.path =^ "/pipermail" {
            dirlist;
        }
    }
];

# ...

vhost.map var.vhosts;

Updated by stbuehler about 13 years ago · 3 revisions