Re: $r->connection->remote_ip with proxy and non proxy env

2008-10-09 Thread Heiko Jansen
Am Mittwoch, den 08.10.2008, 10:06 -0700 schrieb Fred Moyer: > You could also do something like: > > if (my $ip = $r->headers_in->{'X-Forwarded-For'}) { > > $r->connection->remote_ip( $ip ); > } But (as I learned the hard way long ago) you should check the value of the X-Forwarded-For hea

Re: $r->connection->remote_ip with proxy and non proxy env

2008-10-08 Thread Fred Moyer
cfaust-dougot wrote: Folks, I'm guessing this has been answered but I couldn't find it. We need to do some IP checking and need to support it on both a load balanced environment and in a dedicated machine setup. In the load balanced situation $r->connection->remote_ip returns 1 - Is that

$r->connection->remote_ip with proxy and non proxy env

2008-10-06 Thread cfaust-dougot
Folks, I'm guessing this has been answered but I couldn't find it. We need to do some IP checking and need to support it on both a load balanced environment and in a dedicated machine setup. In the load balanced situation $r->connection->remote_ip returns 1 - Is that correct and consistent