Package: lighttpd Version: 1.4.18-1 Severity: normal If my config file looks thus:
fastcgi.server = ( "/urlroot/" => ( ( "host" => "192.168.42.3", "port" => 12346, "check-local" => "disable", ) ) ) then all works correctly. If instead, I change that to "host" => "nim.leo", where local name resolution resolves it # getent hosts nim.leo 192.168.42.3 nim.leo nim It simply serves "503 Service Not Available" errors. It prints in the log: 2008-01-21 23:02:19: (mod_fastcgi.c.1709) converting IP address failed for nim.leo Be sure to specify an IP address here Furthermore, watching lightty on strace reveals: socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 8 fcntl64(8, F_SETFD, FD_CLOEXEC) = 0 fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0 write(5, "2008-01-21 23:02:19: (mod_fastcg"..., 123) = 123 getsockname(7, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.168.42.2")}, [16]) = 0 writev(8, [{"\1\1\0\1\0\10\0\0\0\1\0\0\0\0\0\0\1\4\0\1\3X\0\0\17\17"..., 888}, {"\1\5\0\1\0\0\0\0", 8}], 2) = -1 EPIPE (Broken pipe) It hasn't tried a connect() after the socket(), so the writev() fails with EPIPE. Yet, the documentation claims: "host": is hostname/ip of the FastCGI process -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.23-mh1.cel Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) 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.4-2 high-quality block-sorting file co ii libc6 2.7-5 GNU C Library: Shared libraries ii libfam0 2.7.0-13 Client library to control the FAM ii libldap2 2.1.30.dfsg-13.5 OpenLDAP libraries ii libpcre3 7.4-1 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-8 compression library - runtime lighttpd recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]