[pkg-lighttpd] Bug#632723: fails to bind on any other port than 80 if use-ipv6.pl is enabled

Arno Töll debian at toell.net
Tue Jul 5 12:57:48 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Riccardo,


> if you specify a different port via the 'server.port' directive in
> lighttpd.conf use-ipv6.pl 'shell script', enabled by default,  will
> overwrite it to the default value: 80.

I can't reproduce this. server.port is does not affect $SERVER["socket"]
and vice versa.

Consider the following configuration which works just fine:

server.port = 8080
include_shell "/usr/share/lighttpd/use-ipv6.pl"

results in:

# netstat -lntp | grep "lighttpd"
tcp        0      0 0.0.0.0:8080            0.0.0.0:*
LISTEN      9064/lighttpd
tcp6       0      0 :::80                   :::*
LISTEN      9064/lighttpd

which is exactly the desired behavior. If your real problem was, that
changing the port for server.port does not affect the IPv6 default
configuration you are possibly right. However as Olaf said I'd suggest
to go entirely with your own configuration then.

> I wrote a simple patch that should fix the problem
> http://paste.debian.net/121948/

Thanks for this patch, but that's indeed too much magic as it is not
free of side effects. Think of complex use cases where you would like to
use this this script but your own lighttpd.conf and so on.

Also I disagree that a user which wants to run both, IPv4 and IPv6
strictly wants this necessarily on the same port.

I'd like to hear from you what you think.
- -- 
with kind regards,
Arno Töll
IRC: daemonkeeper on Freenode/OFTC
GnuPG Key-ID: 0x9D80F36D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOEwpMAAoJEMcrUe6dgPNtbn4QANKNwMR0EJOiR5ZZbrLwP/J5
J9MOkW/2uwqjnVFwqhd7BYF0Syuc6gqaINnhU0LpclySKe9Fqeceo7Lq9iPM5pmt
eWGFkRmEeyeqUeNL3U7QVabdj/hp9jEMZOALiFiIGrt9OHNOdcGmc823zBGBtiLy
37znae3AIE5sF7YVl5PBT6EXwsKPyHhnl9dT5vfiOGyBiYB/rYMfQYap6soff5le
EQU+6o5WO5J9NQsVT/Sg2rDI56jtJbPVM9hvJco7XdY9JbYh235CWBI1uIU298KK
Sba4I1TKGntxUOV/EJO7BipuEd8TnAeIuCYl/IMwyvzJlusq3TsOl4FovatcCphA
mZzVQ44rOwsx0Gd/siGwV91GnhBQliqAHLOWm0mLNMbGfTDidWgfG7MqqLq6co3n
ObDxlJKIdQFk7Frq2ZYWMrBfVEvqE53mNhgjWzc0r06PX7PGUjcdrNiXPGrPWVHa
Uwxa4xFnLjjgZbJf6tnLXGwpx2U00+AMUdn/nSVyGm3sOp8hEbn6rYzGv2z4jZXt
kBEFTFMPqNth2JZ5x1rXfMjfXyOiarLER7W4oH4ylYjbNP/h3sLyMa/Km0h57c+5
ijeA32f2gP73dRxMe9kVhVsI4M55M/ymraYm4zyDOiAfCR9c5jrkVV+rYIzVDvYE
vjaCjhsPETJ/XgrfvPGc
=2m7a
-----END PGP SIGNATURE-----





More information about the pkg-lighttpd-maintainers mailing list