Hi all,

To get the functionality of a special kind of proxy, we do
the following, as described in O'Reilly's "Apache Modules" first edition
(S. 370 ff.):
* set a Transhandler in httpd.conf
  PerlTransHandler SomePackage::Proxy
* at the end of this perl-script:
  $r->proxyreq(1);
  $r->uri($uri);
  $r->filename("proxy:$uri");
  $r->handler('proxy-server');

This works fine, the document defined in $uri gets delivered
to the client.
But, there are some kind of responses of the
remote webserver that include its domain, e.g. redirects
or the "permanently moved"-response after trying to get a
directory without trailing slash: in the Location-Header-element
we find the webserver's domain and the following request
bypasses our proxy.

There is the ProxyPassReverse directive for mod_proxy, but
can we activate it from within the perl-script above? (how?)
And would it care for every situation like the ones 
mentioned above?

Another possibility would be to get hands on the response as 
generated by mod_proxy and manipulate it before sending it to
the client. But how could this be achieved?
Using a "PerlHandler", mod_proxy no longer seems to be
activated - could it be activated from within the perl-handler,
to then manipulate its results?

Thanks for any hints,
--
Ernst Leonhard

mailto:[EMAIL PROTECTED]
_______________________________________________________________
SecureNet GmbH
Intranet und Internet Solutions         Tel:  +49 89/32133-654
Frankfurter Ring 193a                   Fax:  +49 89/32133-699
80807 München, Germany                  http://www.secure-net.de

Reply via email to