>>>>> "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?
I think what you have to do is make a handler that calls Apache's
remote_ip() method with the proper value, then runs a sub-request for
your CGI program, taking care not to recurse on itself.
Your handler could be /foo/bar/VENDOR and then it sets the remote IP,
and calls the subrequest for /cgi-bin/VENDOR. Just make sure nobody
calls /cgi-bin/VENDOR directly or you'll screw it up.
If they don't understand how an IP address can change on a client, do
they understand that clients can share the same IP?
These people should be taken out and shot if they don't understand
that their app fails this way. Really. Just shoot 'em.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: [EMAIL PROTECTED] Rockville, MD +1-301-545-6996
GPG & MIME spoken here http://www.khera.org/~vivek/