lighttpd
2008-04-09
lighttpd and mailman
Configuring lighttpd, mailman and vhosts with lighttpd
Cherokee went to a web based config in version 0.6.1 instead of previous plain text files. It's fast-cgi module also has problems. So we're now using lighttpd.
argh.. curly brackets! haven't seen those for a while. http servers are only used for Mailman, Trac and static sites at Inigo. Most of the configs for lighttpd examples were brief snippets. So here's a more complete lighttpd.conf configuration with vhosts.
## minimum set of server modules you need here
server.modules = (
"mod_rewrite",
"mod_alias",
"mod_access",
"mod_cgi",
"mod_ssi",
)
# named virtual hosts are contained within $HTTP["host"] {stuff
# here}
#### vhost setup for mailman ####
$HTTP["host"] == "lists.foss.org.my" {
#the following line assigns as cgi everything in /mailman directory
$HTTP["url"] =~ "^/mailman/" {
cgi.assign = ( "" => "" )
}
# rewrites hostname only to show listinfo page
url.rewrite = ( "^/$" => "/mailman/listinfo")
# url alias to the different physical directories
alias.url = ( "/mailman/" => "/usr/local/mailman/cgi-bin/",
"/pipermail/" => "/usr/local/mailman/archives/public/" )
}
### a simpler static files entry ###
$HTTP["host"] == "planet.foss.org.my" {
server.document-root = "/mnt/jails/foss/usr/local/www/planet"
}
