[pkg-lighttpd] Bug#386568: lighttpd: Same problem here, with alias on localhost

Vincent Bernat bernat at luffy.cx
Mon Dec 3 23:35:33 UTC 2007


Package: lighttpd
Version: 1.4.18-1
Followup-For: Bug #386568

Hi !

I have the same problem here. Putting an alias has no effect when
using it from localhost :

 alias.url += ( "/test/" => "/var/tmp/test/" )
 
However, this works :

 $HTTP["remoteip"] == "127.0.0.1" {
  alias.url += ( "/test/" => "/var/tmp/test/" )
 }
 
I have no problem accessing the alias when using my machine name
instead of localhost to access the site.

I can also comment alias.url in lighttpd.conf:

 $HTTP["remoteip"] == "127.0.0.1" {
 #       alias.url += (
 #               "/doc/" => "/usr/share/doc/",
 #               "/images/" => "/usr/share/images/"
 #       )
         $HTTP["url"] =~ "^/doc/|^/images/" {
 	                dir-listing.activate = "enable"
         }
 }
				
My hostname is associated to an IP in /etc/hosts:

127.0.0.1       localhost.localdomain localhost 
192.168.116.1   neo.luffy.cx neo

However, this hosts file works fine too:

127.0.0.1       localhost.localdomain localhost neo

I still get access using http://neo... But http://localhost still
gives a 404.

Thanks.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages lighttpd depends on:
ii  libattr1                1:2.4.39-1       Extended attribute shared library
ii  libbz2-1.0              1.0.3-7          high-quality block-sorting file co
ii  libc6                   2.7-3            GNU C Library: Shared libraries
ii  libgamin0 [libfam0]     0.1.9-2          Client library for the gamin file 
ii  libldap2                2.1.30.dfsg-13.5 OpenLDAP libraries
ii  libpcre3                7.3-2            Perl 5 Compatible Regular Expressi
ii  libssl0.9.8             0.9.8g-3         SSL shared libraries
ii  libterm-readline-perl-p 1.0302-1         Perl implementation of Readline li
ii  lsb-base                3.1-24           Linux Standard Base 3.1 init scrip
ii  mime-support            3.39-1           MIME files 'mime.types' & 'mailcap
ii  zlib1g                  1:1.2.3.3.dfsg-7 compression library - runtime

lighttpd recommends no packages.

-- no debconf information





More information about the pkg-lighttpd-maintainers mailing list