ports/110371: www/lighttpd 1.4.13_1: Enabling IPv6 disables IPv4 support

Joseph Terner jtsn at gmx.de
Fri Mar 16 02:40:05 UTC 2007


>Number:         110371
>Category:       ports
>Synopsis:       www/lighttpd 1.4.13_1: Enabling IPv6 disables IPv4 support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 16 02:40:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Joseph Terner
>Release:        FreeBSD 6.2-RELEASE
>Organization:
>Environment:
FreeBSD plex 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 15 20:59:22 CET 2007     root at plex.jtsn.eu:/var/spool/src/sys/i386/compile/PLEX  i386

>Description:
Compiling the lighttpd port using the WITH_IPV6 option (default) IPv6 support is compiled in but disabled in the default configuration. This alone could be considered as bug already, but there is another issue:

Enabling the IPv6 support in the configuration file /usr/local/etc/lighttpd.conf using the statement

server.use-ipv6 = "enable"

disables any IPv4 support in lighttpd. The server is unreachable via IPv4 when started using this configuration.
>How-To-Repeat:
Install lighttpd with Option WITH_IPV6 enabled:

Add this line to the configuration file:

server.use-ipv6 = "enable"

Start lighttpd and try to connect via IPv4.
>Fix:
According to <http://trac.lighttpd.net/trac/ticket/509> this is a (Free)BSD-specific issue. Also it describes a workaround by adding this lines to /usr/local/etc/lighttpd.conf:

server.use-ipv6 = "enable"
$SERVER["socket"] == "0.0.0.0:80" {
# listen on all ipv4 interfaces.
}

I suggest to either add this workaround to the default configuration when lighttpd is to be installed with IPv6 support, or add a source patch to the port that makes lighttpd behave on FreeBSD as on other operating systems until the problem is fixed upstream.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list