Return-Path: Delivered-To: apmail-httpd-test-dev-archive@www.apache.org Received: (qmail 13087 invoked from network); 30 Mar 2004 20:21:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 30 Mar 2004 20:21:09 -0000 Received: (qmail 69425 invoked by uid 500); 30 Mar 2004 20:20:59 -0000 Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 69382 invoked by uid 500); 30 Mar 2004 20:20:58 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 69367 invoked from network); 30 Mar 2004 20:20:58 -0000 Received: from unknown (HELO minerva.ectoplasm.org) (66.34.202.202) by daedalus.apache.org with SMTP; 30 Mar 2004 20:20:58 -0000 Received: from [172.28.57.123] (office4.tmcs.net [209.104.55.5]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by minerva.ectoplasm.org (Postfix) with ESMTP id F01555EB1C for ; Tue, 30 Mar 2004 12:21:03 -0800 (PST) Subject: Re: [Patch] Better IPv6 detection and configuration From: "Philippe M. Chiasson" To: test-dev@httpd.apache.org In-Reply-To: <1080677497.23388.5.camel@localhost.localdomain> References: <1080602853.6422.18.camel@localhost.localdomain> <20040330080428.GA24430@redhat.com> <1080677497.23388.5.camel@localhost.localdomain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-zxrzBddbeklOz8FIUj8e" Message-Id: <1080678063.23388.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.5.3 (1.5.3-1) Date: Tue, 30 Mar 2004 12:21:03 -0800 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-zxrzBddbeklOz8FIUj8e Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-03-30 at 12:11 -0800, Philippe M. Chiasson wrote: > On Tue, 2004-03-30 at 09:04 +0100, Joe Orton wrote: > > Would it not be simpler to just change the Listen statements to be > >=20 > > "Listen 0.0.0.0:port" by default and avoid the IPv6 issue entirely? >=20 > Well, this patch was trying to be somewhat smart about IPv6, but if > people feel it's adequate to listen to 0.0.0.0 (ipv4 catch-all) by > default all the time, it would work. >=20 > Thanks Joe, I somehow completely forgot 0.0.0.0 and stuck with '*' > instead, and that was not what I wanted. Something like this will most likely work for everyone (ipv4/v6) with the only difference is that the test servers are not listening to localhost anymore and could be reached from oustide machines (do we care?) Index: Apache-Test/lib/Apache/TestConfig.pm =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestCo= nfig.pm,v retrieving revision 1.213 diff -u -I$Id -r1.213 TestConfig.pm --- Apache-Test/lib/Apache/TestConfig.pm 4 Mar 2004 05:51:31 -0000 1.213 +++ Apache-Test/lib/Apache/TestConfig.pm 30 Mar 2004 20:19:41 -0000 @@ -1017,7 +1017,7 @@ my @out_config =3D (); if ($self->{vhosts}->{$module}->{namebased} < 2) { #extra config that should go *outside* the - @out_config =3D ([Listen =3D> $vars->{servername} . ':' . $port]); + @out_config =3D ([Listen =3D> '0.0.0.0:' . $port]); =20 if ($self->{vhosts}->{$module}->{namebased}) { push @out_config =3D> [NameVirtualHost =3D> "*:$port"]; @@ -1785,7 +1785,7 @@ =20 =20 __DATA__ -Listen @ServerName@:@Port@ +Listen 0.0.0.0:@Port@ =20 ServerRoot "@ServerRoot@" DocumentRoot "@DocumentRoot@" Index: Apache-Test/lib/Apache/TestConfigPerl.pm =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestCo= nfigPerl.pm,v retrieving revision 1.85 diff -u -I$Id -r1.85 TestConfigPerl.pm --- Apache-Test/lib/Apache/TestConfigPerl.pm 16 Mar 2004 03:10:32 -0000 1.8= 5 +++ Apache-Test/lib/Apache/TestConfigPerl.pm 30 Mar 2004 20:19:41 -0000 @@ -222,7 +222,7 @@ my($self, $module, $args) =3D @_; my $port =3D $self->new_vhost($module); my $vars =3D $self->{vars}; - $self->postamble(Listen =3D> $vars->{servername} . ':' . $port); + $self->postamble(Listen =3D> '0.0.0.0:' . $port); } =20 my %add_hook_config =3D ( > > joe --=-zxrzBddbeklOz8FIUj8e Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAadavyzKhB4jDpaURAsVCAKCbbtjs3N7tW+FHSuGL3WDaUKqfCACeMAvO PyL2VDEny19SPgYhyH5/MV8= =/gcJ -----END PGP SIGNATURE----- --=-zxrzBddbeklOz8FIUj8e--