Bug 14037 - Show defaults for listen to ipv4+ipv6 in BSD example configs
Summary: Show defaults for listen to ipv4+ipv6 in BSD example configs
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Runtime Config (show other bugs)
Version: 2.0.43
Hardware: All FreeBSD
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-29 05:47 UTC by Leif Neland
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.