perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Horne" <>
Subject RE: Proxying access to restricted information
Date Fri, 13 Aug 2004 03:24:43 GMT
Thanks for everyone's responses. I managed to get this working in principle

1) using mod_proxy and mod_rewite to create the proxy through to the server.
2) PerlAuth* handlers to determine user access



-----Original Message-----
From: Dan Horne [] 
Sent: Friday, 13 August 2004 6:27 a.m.
To: 'Stas Bekman'
Subject: RE: Proxying access to restricted information

Thanks for your suggestion.

I know nothing about mod_perl 2, and will look at the documentation today. I
do have a couple of questions:

1. Is Apache 2 and mod_perl 2 stable? It may be a silly question, as they've
been around for a while, but we've been an Apache v1 shop, and I've never
used mod_perl v2 at all. Heck, I've only played with mp v1 in my own time 2.
Because I have to justify my investigative time to the boss, I need to know
that what I want to do is possible, namely: providing a reverse proxy to an
existing website, where the proxy will programmatically allow users through
depending on their access rights. It's due to this authentication
requirement that I can't use mod_rewrite by itself


-----Original Message-----
From: Stas Bekman [] 
Sent: Thursday, 12 August 2004 5:07 p.m.
To: Dan Horne
Subject: Re: Proxying access to restricted information

Dan Horne wrote:
> Following on from this, it seems that the PerlTransHandler looked like
> my best bet, but it doesn't seem to be able to alter the hostname 
> (please correct me if there is a way to do this, as I struggled with 
> it so far)
> I guess mod_rewrite allows the hostname to be altered, but I need to
> intercept the request and perform access checks, and I don't know if I 
> can do this before mod_rewrite kicks in during the request lifecycle.

With mod_perl 2, you can use
which is perfect for proxying as it does the work long before 
mod_rewrite kicks in. This module is a connection level filter.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

Report problems:
Mail list info:
List etiquette:

Report problems:
Mail list info:
List etiquette:

View raw message