[pkg-lighttpd] Bug#877039: ":80" is appended to socket file name
Jonathan Krebs
jonathan.krebs at fau.de
Wed Sep 27 23:23:27 UTC 2017
Package: lighttpd
Version: 1.4.45-1
If the server is bound to a socket in file system, three characters :80 are appended to the file path, breaking my reverse proxy setup.
Minimal example:
jonny at heron:/var/tmp/ltest$ lighttpd -D -f config &
[1] 30888
jonny at heron:/var/tmp/ltest$ 2017-09-28 00:26:22: (log.c.217) server started
jonny at heron:/var/tmp/ltest$ ls
config lighty.pid lighty.sock:80
jonny at heron:/var/tmp/ltest$ cat config
server.document-root = "/var/tmp/ltest/"
index-file.names = ( "index.html", "index.lighttpd.html" )
server.bind = "/var/tmp/ltest/lighty.sock"
server.errorlog = "/dev/tty"
server.pid-file = "/var/tmp/ltest/lighty.pid"
dir-listing.activate = "enable"
# ---------- end of lighttpd config.
expected: a socket "lighty.sock" without :80
jonny at heron:~$ dpkg -s libc6 | grep ^Version
Version: 2.24-17
jonny at heron:~$ uname -a
Linux heron 4.11.0-1-amd64 #1 SMP Debian 4.11.6-1 (2017-06-19) x86_64 GNU/Linux
I think the source lines appending the port are src/network.c,
buffer_copy_buffer(b, srv->srvconf.bindhost);
buffer_append_string_len(b, CONST_STR_LEN(":"));
buffer_append_int(b, srv->srvconf.port);
I remember my setup to work some time ago (jessie or something older)
More information about the pkg-lighttpd-maintainers
mailing list