Re: Simple program _setting_ REMOTE_ADDR

2000-07-04 Thread Steve van der Burg
Ack! That was pretty stupid of me. It doesn't explain why SetEnvIf Request_URI "/cgi-bin/VENDOR" REMOTE_ADDR=1.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

Re: Simple program _setting_ REMOTE_ADDR

2000-07-01 Thread Ask Bjoern Hansen
On Fri, 23 Jun 2000, Steve van der Burg wrote: Ack! That was pretty stupid of me. It doesn't explain why SetEnvIf Request_URI "/cgi-bin/VENDOR" REMOTE_ADDR=1.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

Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Steve van der Burg
In order to get a certain buggy, poorly-designed application from a well-known vendor to maintain its sessions in the face of the user's IP address changing (vendor doesn't understand that addresses may change between requests), I'd like to have Apache lie to the vendor's canned CGI app about

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Vivek Khera
"SvdB" == Steve van der Burg [EMAIL PROTECTED] writes: SvdB That is, I'd like to set REMOTE_ADDR like so: SvdB Location /cgi-bin/VENDOR SvdB # Feed vendor's crappy CGI code a fake address that won't change: SvdB PerlSetEnv REMOTE_ADDR 1.2.3.4 SvdB /Location But is /cgi-bin running under Perl?

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Steve van der Burg
Vivek Khera [EMAIL PROTECTED] wrote: "SvdB" == Steve van der Burg [EMAIL PROTECTED] wrote: SvdB That is, I'd like to set REMOTE_ADDR like so: SvdB Location /cgi-bin/VENDOR SvdB # Feed vendor's crappy CGI code a fake address that won't change: SvdB PerlSetEnv REMOTE_ADDR 1.2.3.4 SvdB /Location

Re: Simple program _setting_ REMOTE_ADDR

2000-06-23 Thread Vivek Khera
"SvdB" == Steve van der Burg [EMAIL PROTECTED] writes: SvdB I agree. How a major vendor with lots of staff and billions of SvdB dollars can get the basics wrong, I don't know. Ever used a MS product? ;-) Like that but work-around earlier today for Apache::Request to work around a MIME

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Steve van der Burg
Like that but work-around earlier today for Apache::Request to work around a MIME formatting but in IE on the Mac. Lame. Taking your remote_ip hint, and reading the Eagle a bit more closely, I came up with this: In httpd.conf: Location /cgi-bin/VENDOR PerlAccessHandler LHSC::FakeRemoteIP

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Dan Rench
On Fri, 23 Jun 2000, Steve van der Burg wrote: Taking your remote_ip hint, and reading the Eagle a bit more closely, I came up with this: In httpd.conf: Location /cgi-bin/VENDOR PerlAccessHandler LHSC::FakeRemoteIP /Location Why an Access handler? I realize it works, but a more

Re: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Steve van der Burg
In httpd.conf: Location /cgi-bin/VENDOR PerlAccessHandler LHSC::FakeRemoteIP /Location Why an Access handler? I realize it works, but a more appropriate phase would be PerlFixupHandler, since you aren't doing any access control in your module. A couple other nitpicky points: you probably

RE: Simple program _setting_ REMOTE_ADDR - SOLUTION

2000-06-23 Thread Geoffrey Young
-Original Message- From: Dan Rench [mailto:[EMAIL PROTECTED]] Sent: Friday, June 23, 2000 12:33 PM To: Steve van der Burg Cc: [EMAIL PROTECTED] Subject: Re: Simple program _setting_ REMOTE_ADDR - SOLUTION On Fri, 23 Jun 2000, Steve van der Burg wrote: Taking your