[pkg-lighttpd] Bug#345554: lighttpd: Seems to be related to the use
of "+=" with alias.url
Mike Paul
mike at wyzardry.net
Thu Nov 30 09:12:26 UTC 2006
Package: lighttpd
Version: 1.4.13-4
Followup-For: Bug #345554
I encountered this bug while trying to use lighttpd with dwww;
http://localhost/cgi-bin/dwww returns a 404 error.
I ran lighttpd under strace and found the following:
stat64("/usr/lib/cgi-bin/, /usr/lib/cgi-bin/dwww", 0xbfb4ca68) = -1 ENOENT (No such file or directory)
That string, with a comma and a space in the middle, is clearly not a
valid filename. But if I change "+=" to simply "=" on the two
"alias.url" lines in 10-cgi.conf, the problem goes away and dwww works.
Apparently the use of "+=" causes it to try to combine the two alias
strings in this very nonsensical way.
It seems very strange to me that lighttpd tries to combine both alias
strings like this, when it seems to ignore the first one completely
unless the second one (inside the $HTTP["host"]=="localhost" block) is
given. One could say that the real bug is the fact that the localhost
hack is needed in the first place. But at least by changing "+=" to "+"
it can be made to work correctly.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-686-bigmem
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages lighttpd depends on:
ii libattr1 2.4.32-1 Extended attribute shared library
ii libbz2-1.0 1.0.3-6 high-quality block-sorting file co
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libldap2 2.1.30-13.2 OpenLDAP libraries
ii libpcre3 6.7-1 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8c-3 SSL shared libraries
ii lsb-base 3.1-22 Linux Standard Base 3.1 init scrip
ii mime-support 3.37-1 MIME files 'mime.types' & 'mailcap
ii zlib1g 1:1.2.3-13 compression library - runtime
Versions of packages lighttpd recommends:
pn php4-cgi | php5-cgi <none> (no description available)
-- no debconf information
More information about the pkg-lighttpd-maintainers
mailing list