Re: Simple mod_perl Question

[prev] [thread] [next] [Date index for 2005/01/07]

From: Jeff Bisbee
Subject: Re: Simple mod_perl Question
Date: 18:38 on 07 Jan 2005
* Jeff Bisbee (mod_perl-users@xxxxxxx.xxx) wrote:
> I just wanted to verify that there weren't any hidden gotchas by doing
> the following:
> 
>     # set actual ip of host doing the requesting instead of the proxy
>     my ($actual_remote_ip) = split /,/, $r->header_in('X-Forwarded-For');
>     $r->connection->remote_ip($actual_remote_ip) if $actual_remote_ip;
> 
> I just wanted to make sure there would be any conditions that the above 
> code wouldn't handle.

I guess I just want some quick feedback to make sure I'm going about
replacing the IP the right way and there isn't a better way to do it.

-- Jeff Bisbee / mod_perl-users@xxxxxxx.xxx / jbisbee.com

Simple mod_perl Question
Jeff Bisbee 00:39 on 07 Jan 2005

Re: Simple mod_perl Question
Jeff Bisbee 18:38 on 07 Jan 2005

Re: Simple mod_perl Question
Perrin Harkins 19:05 on 07 Jan 2005

Re: Simple mod_perl Question
J b 19:07 on 07 Jan 2005

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52