Bug 14037

Summary: Show defaults for listen to ipv4+ipv6 in BSD example configs
Product: Apache httpd-2 Reporter: Leif Neland <leif>
Component: Runtime ConfigAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: CLOSED FIXED    
Severity: enhancement    
Priority: P3    
Version: 2.0.43   
Target Milestone: ---   
Hardware: All   
OS: FreeBSD   

Description Leif Neland 2002-10-29 05:47:06 UTC
Suggestion: Enter both ipv4 and ipv6 listens in example httpd.conf
Eg: "#For some platforms, eg BSD use ..."

http://httpd.apache.org/docs-2.0/bind.html :

On some platforms, such as NetBSD, binding to the IPv6 wildcard address
("::") does not allow Apache to accept connections on IPv4 interfaces. In
this situation, multiple Listen directives are required, as shown below:

Listen 0.0.0.0:80
Listen [::]:0

Apache does not currently detect this, so the Listen statements must be
edited manually by the administrator.
Comment 1 Jeff Trawick 2002-11-05 12:25:40 UTC
FYI...

Here are some notes I threw together describing what I think is the proper 
solution.  Part of that is to provide multiple Listen statements.

http://www.apache.org/~trawick/v4mapped.html

Any comments are appreciated.
Comment 2 Jeff Trawick 2002-11-14 14:25:13 UTC
Just committed was a change to add --[enable|disable]-v4-mapped configure option
which defaults to --disable-v4-mapped on freebsd5*|netbsd|openbsd, which will
result in two listen statements in the default config file.

The default ssl config is not automatically generated, so comments were added
to that describing the two necessary Listen directives.