Philippe M. Chiasson wrote: [...]
Ideally, to fix this once and for all, we need to determine 2 things:
1. The availability of IPv6 on that box 2. Wether httpd was compiled with --enable-v4-mapped or not (or what it defaulted to)
Well, if we can figure out (2), then 1 can be skipped. If someone built Apache with v6, it certainly won't work on a system w/o ipv6 enabled. No?
On my machine: % httpd -V | grep -i ipv -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
what's yours (with ipv6?)
OpenBSD 3.4, with no special ./configure options:
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
So what this actually means is that unless explicitily stated, a :
Listen 80
in your httpd.conf will _only_ bind on ::1, and not bind to an ipv4 address.
Specifying
Listen 127.0.0.1:80
will _only_ bind on the ipv4 localhost address...
And if you ./configure --enable-v4-mapped
Listen 80
Will get you an IPv6 listening socket on ::1 that's _also_ listening on the ipv4 equivalent of 127.0.0.1
I'll try to summarize what you said in a table. The following approaches work for Listen:
Apache \ OS | IPV4 | IPV6 -------------------------------------------- --enable-v4-mapped | 80 | 80 --disable-v4-mapped | can't happen | 127.0.0.1:80
Am I correct? So we need to use 'Listen 127.0.0.1:80' only when we see:
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled), .i.e. --disable-v4-mapped
otherwise the old '80' is fine.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html