⇤ ← Revision 1 as of 2009-04-30 01:14:01
1593
Comment:
|
1538
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma page-filename DOC/versions/8487008 | #pragma page-filename DOC/versions/8978471 |
Line 5: | Line 5: |
server.modules += ("mod_cgi", "mod_accesslog", "mod_alias") | server.modules += ("mod_redirect", "mod_alias", "mod_cgi", "mod_accesslog") |
Line 7: | Line 7: |
$HTTP["host"] == "lists.example.com" { | $HTTP["host"] == "lists.example.com" { |
Line 14: | Line 14: |
url.redirect = ( "^/$" => "/listinfo" ) |
|
Line 44: | Line 46: |
} | } |
The Integration of Mailman and lighttpd is very easy. The following configuration-snippet shows you how:
server.modules += ("mod_redirect", "mod_alias", "mod_cgi", "mod_accesslog") $HTTP["host"] == "lists.example.com" { var.host = "lists.example.com" var.docpath = "/usr/local/mailman/" var.logpath = "/var/log/www/" server.document-root = docpath + "cgi-bin/" accesslog.filename = logpath + host + "-access-log" url.redirect = ( "^/$" => "/listinfo" ) alias.url = ( "/icons/" => docpath + "icons/", "/pipermail/" => docpath + "archives/" ) cgi.assign = ( "/admin" => "", "/admindb" => "", "/confirm" => "", "/create" => "", "/edithtml" => "", "/listinfo" => "", "/options" => "", "/private" => "", "/rmlist" => "", "/rosters" => "", "/subscribe" => "") }
If you want to access the webinterface only over a secure HTTPS-Connection (good for Password-Protection), you have to enable SSL-Support and add something like the following snippet to your configuration:
server.modules += ("mod_redirect") $SERVER["socket"] == ":80" { $HTTP["host"] == "lists.example.com" { url.redirect = ( "^/(.*)" => "https://lists.example.com/$1" ) server.name = "lists.example.com" } }