You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by ol...@dgi.finances.gouv.fr on 2004/05/07 14:07:41 UTC

Re: mp2 static build on HPUX11i: tests

Hey Stas,





Stas Bekman <st...@stason.org>
04/05/2004 19:38

 
        Pour :  olivier.blanc@dgi.finances.gouv.fr, mod_perl Mailing List 
<mo...@perl.apache.org>, "Philippe M. Chiasson" <go...@cpan.org>
        cc : 
        Objet : Re: mp2 static build on HPUX11i: tests




>2) the rest of the tests fail on $ENV{REMOTE_ADDR} and $r->remote_address 

>returning 0.0.0.0 instead of 127.0.0.1. Sounds like an ipv6 issue to me. 
but 
>since all those running ipv6 didn't report that problem that sounds as 
either 
>a bug in Apache on HPUX11i or some OS issues. Olivier, could you try a 
mod_cgi 
>script that prints out  $ENV{REMOTE_ADDR}, when your client is running on 
the 
>same machine and when it's running from another machine? Thanks.

I checked that variable through PHP. It gave me the same result : 0.0.0.0

What could I check to go further ?

olivier


Re: mp2 static build on HPUX11i: tests

Posted by Stas Bekman <st...@stason.org>.
>>2) the rest of the tests fail on $ENV{REMOTE_ADDR} and $r->remote_address 
> 
> 
>>returning 0.0.0.0 instead of 127.0.0.1. Sounds like an ipv6 issue to me. 
> 
> but 
> 
>>since all those running ipv6 didn't report that problem that sounds as 
> 
> either 
> 
>>a bug in Apache on HPUX11i or some OS issues. Olivier, could you try a 
> 
> mod_cgi 
> 
>>script that prints out  $ENV{REMOTE_ADDR}, when your client is running on 
> 
> the 
> 
>>same machine and when it's running from another machine? Thanks.
> 
> 
> I checked that variable through PHP. It gave me the same result : 0.0.0.0

Perfect. So it's not an issue with mod_perl.

> What could I check to go further ?

I suppose it's your IPv6 setup. You probably have the localhost entry mapped 
to ::1 in /etc/hosts?

::1 localhost

I suppose we could test for '127.0.0.1' || '0.0.0.0'. Any difference if you 
replace it with:

127.0.0.1 localhost
-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org 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