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/10 09:26:53 UTC

Réf. : Re: mp2 static build on HPUX11i: tests

Stas Bekman <st...@stason.org>
07/05/2004 19:31

 
        Pour :  olivier.blanc@dgi.finances.gouv.fr
        cc :    "Philippe M. Chiasson" <go...@cpan.org>, mod_perl Mailing List 
<mo...@perl.apache.org>
        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

>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

Actually I donnot have this line in /etc/hosts

>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

I always have the same result, even If I test from another host... So 
might it be a problem with Apache 2.0.49 ?

-- 
Olivier


Re: Réf. : Re: mp2 static build on HPUX11i: tests

Posted by Stas Bekman <st...@stason.org>.
olivier.blanc@dgi.finances.gouv.fr wrote:
[...]
>>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
> 
> 
> Actually I donnot have this line in /etc/hosts

What do you have in there? Could it be that on your platform it resides in 
some other file?

>>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
> 
> 
> I always have the same result, even If I test from another host... So 
> might it be a problem with Apache 2.0.49 ?

I don't know. Could you ask at the apache users list[1]? Don't mention 
mod_perl, say that you get 0.0.0.0 with mod_php or mod_cgi using 
$ENV{REMOTE_ADDR} and ask why, giving the other details (platforms, sample 
script/etc).

[1] http://httpd.apache.org/lists.html#http-users

-- 
__________________________________________________________________
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