Return-Path: Mailing-List: contact modperl-help@apache.org; run by ezmlm Delivered-To: mailing list modperl@apache.org Received: (qmail 67470 invoked from network); 4 Jul 2000 11:12:52 -0000 Received: from titan.lhsc.on.ca (142.158.2.20) by locus.apache.org with SMTP; 4 Jul 2000 11:12:52 -0000 Received: from lhsc.on.ca (lhsc.on.ca [142.158.100.232]) by titan.lhsc.on.ca (8.9.3+Sun/8.9.3) with SMTP id HAA24297 for ; Tue, 4 Jul 2000 07:12:24 -0400 (EDT) Received: from LHSC-Message_Server by lhsc.on.ca with Novell_GroupWise; Tue, 04 Jul 2000 07:12:23 -0400 Message-Id: X-Mailer: Novell GroupWise 5.5.3 Date: Tue, 04 Jul 2000 07:12:18 -0400 From: "Steve van der Burg" To: Subject: Re: Simple program _setting_ REMOTE_ADDR Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >> Ack! That was pretty stupid of me. It doesn't explain why >> SetEnvIf Request_URI "/cgi-bin/VENDOR" REMOTE_ADDR=3D1.2.3.4 >> didn't work, but I can take that to the Apache folks. > >It's because mod_cgi sets the environment variable just before it >runs the program (and thus overriding whatever you set before). > >A fixup handler to set the fake ip address (as you figured out) and >possibly a loghandler to set remote_ip to the right address again is >the way to go. Thanks. Between the help I got on the list, and a quick reading of some = of the Apache source (esp. mod_cgi), I had a working solution up and = running 90 minutes (!) after first deciding to attack the problem from = that angle. ...Steve=20 --=20 Steve van der Burg Information Services London Health Sciences Centre (519) 685-8300 ext 35559 steve.vanderburg@lhsc.on.ca