[pkg-lighttpd] Bug#386568: lighttpd: alias don't work
Alexander Schmehl
tolimar at debian.org
Fri Sep 8 14:04:22 UTC 2006
Package: lighttpd
Version: 1.4.12~20060907-1
Severity: normal
Hi!
I think I just found a weird bug with your package. I wanted to use
lighttpd for a Debian-Mirror in my local network, and I wanted to use an
alias for that.
So I created a file /etc/lighttpd/conf-available/20-debian.conf and
symlinked it in /etc/lighttpd/conf-enabled/.
I tried the following:
=====
alias.url = ( "/debian/" => "/srv/pub/debian/" )
=====
(I tried with "+=", too; makes no difference.)
But when trying to acces the mirror via http://localhost/debian/ I just
got a 404.
Later I found out, that it did work, when I
a) used a different host (not the same machine running lighttpd) or
b) commented the /doc/ and /images/ aliase out in the main configuration
file (workes via localhost, too)
It seems to me, that beginning with the definition of the local aliase
for /doc/ and /images/ lighttpd has two alias lists (which makes sense),
and my later definition for a an alias wasn't added to the local list.
I'm not sure, it's a bug or a feature I don't understand, but at least
it's a behaviour I didn't expected (and I guess some others might be
think the same), so I ask you to at least document it in (e.g. in a
README.debian file).
Using something like:
=====
$HTTP["host"] == "localhost" {
alias.url += ( "/debian" => "/srv/pub/debian" )
}
alias.url = ( "/debian" => "/srv/pub/debian" )
=====
Works as expected.
Yours sincerely and thanks for your work,
Alexander
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages lighttpd depends on:
ii libbz2-1.0 1.0.3-6 high-quality block-sorting file co
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libldap2 2.1.30-13+b1 OpenLDAP libraries
ii libpcre3 6.4-2 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8b-2 SSL shared libraries
ii lsb-base 3.1-15 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
--
Yours sincerely,
Alexander
More information about the pkg-lighttpd-maintainers
mailing list