Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

mod_perl/mod_proxy with Apache 2.2

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


arnaud.desmons at free

Dec 22, 2005, 7:01 AM

Post #1 of 2 (652 views)
Permalink
mod_perl/mod_proxy with Apache 2.2

Hi,

Is this still supposed to work in TransHandler with Apache 2.2 ?

sub handler {
my $r = shift;

my $uri = $r->uri;
$r->filename("proxy:http://test:4949".$uri);
$r->handler('proxy-server');
$r->proxyreq(1);
return Apache2::Const::OK;
}

I get :
[Thu Dec 22 15:54:40 2005] [error] [client 127.0.0.1] File does not
exist: proxy:http://test:4949/

mod_proxy is compiled in and I use mod_perl 2.0.2.

If I replace return OK with return DONE I get nothing in the error log
but a blank page.

Thanks.

--
Arnaud


ssehic at gmail

Dec 22, 2005, 11:50 AM

Post #2 of 2 (552 views)
Permalink
Re: mod_perl/mod_proxy with Apache 2.2 [In reply to]

Try $r->proxyreq(2) and it will work.

On 12/22/05, Arnaud Desmons <arnaud.desmons[at]free.fr> wrote:
> Hi,
>
> Is this still supposed to work in TransHandler with Apache 2.2 ?
>
> sub handler {
> my $r = shift;
>
> my $uri = $r->uri;
> $r->filename("proxy:http://test:4949".$uri);
> $r->handler('proxy-server');
> $r->proxyreq(1);
> return Apache2::Const::OK;
> }
>
> I get :
> [Thu Dec 22 15:54:40 2005] [error] [client 127.0.0.1] File does not
> exist: proxy:http://test:4949/
>
> mod_proxy is compiled in and I use mod_perl 2.0.2.
>
> If I replace return OK with return DONE I get nothing in the error log
> but a blank page.
>
> Thanks.
>
> --
> Arnaud
>

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.