You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2001/06/14 18:59:18 UTC
Re: CONNECT proxy rewrite
On Thu, 1 Mar 2001, Chris Lewis wrote:
> Does anybody know how to alter the destination of a CONNECT transaction
> (in this case "secure proxy" request) in mod_perl?
> $r->uri("newplace:newport") in a Trans handler doesn't seem to do it.
mod_proxy uses the parsed_uri, try this:
use Apache::URI ();
$r->parsed_uri->hostname('newplace');
$r->parsed_uri->port('newport');
$r->uri('newplace:newport');