perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Green <>
Subject Re: PerlPassEnv and Proxies
Date Mon, 18 Feb 2002 19:08:01 GMT
In article <>,
   Hans Juergen von Lengerke <> wrote:

> I agree, its a big hack, but it works :-)

Thanks to both of you for pointing me in the right direction.  I guess
it's obvious, really, that environment variables don't get passed along
proxies.  Blast.  =o)

I've implemented a variation on your hack, and I'm very happy with it. 
It also inspired me to get a further variation going as a method of
getting the original remote host without the trouble of installing
mod_proxy_add_forward.  In the vanilla Apache:

     RewriteRule ^/(.*)$
     http://domain:port/%{REMOTE_HOST}/$1 [P,L]

...and in the mod_perl one:

     RewriteRule ^/([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/(.*)$

Probably best to combine this with

     Order Deny,Allow
     Deny from all
     Allow from localhost

To avoid *really* trivial IP spoofing!

Many thanks again,

      article seven      Andrew Green
 automatic internet |

View raw message