Project

General

Profile

configuration of Lighttpd 1.4.29 for Mailman 2.11 on Debian Lenny

Added by blupp over 12 years ago

Hello,

I try to configure lighttpd 1.4.29 for Mailman 2.11 on Debian Lenny. I have the following configuration:

server.modules                += ( "mod_cgi" )                                                                                                 

$HTTP["host"] =~ "^listen\.domain\.com$" {                                                                                             
server.document-root = "/usr/lib/cgi-bin/mailman" 
accesslog.filename = "/var/log/lighttpd/mailman/access.log" 

server.name = "listen.domain.com" 
# make sure that no-one can list our directory contents
server.dir-listing = "disable" 

alias.url += (
"/mailman/" => "/usr/lib/cgi-bin/mailman/",
"/pipermail/" => "/var/lib/mailman/archives/public/",
"/images/mailman/" => "/usr/share/images/mailman/",
)
cgi.assign = (
"/admin" => "",
"/admindb" => "",
"/confirm" => "",
"/create" => "",
"/edithtml" => "",
"/listinfo" => "",
"/options" => "",
"/private" => "",
"/rmlist" => "",
"/roster" => "",
"/subscribe" => "")

url.rewrite = ( "^/$" => "/mailman/listinfo",
"^/mailman$" => "/mailman/listinfo" )
}

The problem is, that I mostly get a white/blank page after calling "listen.domain.com" or "listen.domain.com/listinfo". Sometimes I get the normal page, but after a reload I get again this blank page. In logfiles and over curl -I I get a 200 status code, so everything seems to be found, but I get only this blank page. Could this be a problem of XCache?

On other resources I found only vhost configurations. Do I have to adapt my config? Or where can I look?

Thanks for any hints!


Replies (5)

RE: configuration of Lighttpd 1.4.29 for Mailman 2.11 on Debian Lenny - Added by blupp over 12 years ago

Squid isn't installed. I tried it on different browsers (opera, chrome, firefox). I know, that firefox has a weird cache behavior.
I wonder why I don't see anything in my logs. According to my logs, everything is working fine, but ...

For example:

[24/Oct/2011:21:04:15 +0200] "GET / HTTP/1.1" 200 994 "-" "Opera/9.80 (X11; Linux x86_64; U; de) Presto/2.9.168 Version/11.52" 
[24/Oct/2011:21:04:18 +0200] "GET / HTTP/1.1" 200 15 "-" "Opera/9.80 (X11; Linux x86_64; U; de) Presto/2.9.168 Version/11.52" 

RE: configuration of Lighttpd 1.4.29 for Mailman 2.11 on Debian Lenny - Added by blupp over 12 years ago

Hello,

I could figure out where my problem is. I forgot to say, that I have a patched version of Lighttpd 1.4.29 and I use mod_deflate. After switching it off, everything is working normal.

So the question is, what is going wrong while deflating? Here is my deflate config:

server.modules += ( "mod_deflate" )

deflate.enabled = "enable" 
deflate.compression-level = 1
deflate.mem-level = 9
deflate.window-size = 15
deflate.bzip2 = "enable" 
deflate.min-compress-size = 200
deflate.work-block-size = 512
deflate.mimetypes = ("text/html", "text/xml")

Maybe it seems to be linked with this bug?
http://redmine.lighttpd.net/issues/1031

RE: configuration of Lighttpd 1.4.29 for Mailman 2.11 on Debian Lenny - Added by stbuehler over 12 years ago

There is a reason why mod_deflate isn't included. You'll have to ask the author(s) of the mod_deflate patch.

RE: configuration of Lighttpd 1.4.29 for Mailman 2.11 on Debian Lenny - Added by blupp over 12 years ago

ok, I´ll further not use this patch ...

for documentation purposes, the working configuration:

server.modules                += ( "mod_cgi" )
$HTTP["host"] =~ "^lists\.domain\.com$" {
server.document-root = "/usr/lib/cgi-bin/mailman/" 
accesslog.filename = "/var/log/lighttpd/mailman/access.log" 
server.name = "lists.domain.com" 
server.dir-listing = "disable" 

alias.url += (
"/mailman/" => "/usr/lib/cgi-bin/mailman",
"/pipermail/" => "/var/lib/mailman/archives/public",
"/images/mailman/" => "/usr/share/images/mailman" 
)

cgi.assign = (
"/admin" => "",
"/admindb" => "",
"/confirm" => "",
"/create" => "",
"/edithtml" => "",
"/listinfo" => "",
"/options" => "",
"/private" => "",
"/rmlist" => "",
"/roster" => "",
"/subscribe" => "" 
)

url.rewrite = ( 
"^/$" => "/listinfo",
"^/mailman/$" => "/mailman/listinfo" 
)
}

and the relevant entries in /etc/mm_cfg.py

DEFAULT_URL_PATTERN = 'http://%s/'
PRIVATE_ARCHIVE_URL = '/private'
IMAGE_LOGOS         = '/images/mailman/'
DEFAULT_EMAIL_HOST = 'domain.com'
DEFAULT_URL_HOST   = 'lists.domain.com'
    (1-5/5)