You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jeff Nokes <je...@yahoo.com> on 2006/03/23 23:01:52 UTC

Can one use mod_proxy post the Authentication phase in apache?

Hi,
 I'm trying to assist another dept. at my work, to provide a reverse-proxy service with our apache based mod_perl application.  This other dept. wanted to leverage our custom PerlAuthenHandler for security reasons, yet they desire just a pass-thru proxy request to their application tier on behalf of the client.  Since the authentication phase happens after the header parsing/URI translation phase (where mod_proxy is executed I believe), is there a way to invoke mod_proxy functionalty after the authentaction phase?  Perhaps in the content/response phase?
 
 I currently have a homegrown, LWP based solution that is almost working from the response phase, but it would be much better (and faster) if I could take care of this prior to getting to the response phase.
 
 Thanks in advance for any help you can offer.
 - Jeff



Re: Can one use mod_proxy post the Authentication phase in apache?

Posted by Jie Gao <J....@isu.usyd.edu.au>.


On Thu, 23 Mar 2006, Jeff Nokes wrote:

> Date: Thu, 23 Mar 2006 14:01:52 -0800 (PST)
> From: Jeff Nokes <je...@yahoo.com>
> To: modperl@perl.apache.org
> Subject: Can one use mod_proxy post the Authentication phase in apache?
>
> Hi,
>  I'm trying to assist another dept. at my work, to provide a reverse-proxy service with our apache based mod_perl application.  This other dept. wanted to leverage our custom PerlAuthenHandler for security reasons, yet they desire just a pass-thru proxy request to their application tier on behalf of the client.  Since the authentication phase happens after the header parsing/URI translation phase (where mod_proxy is executed I believe), is there a way to invoke mod_proxy functionalty after the authentaction phase?  Perhaps in the content/response phase?

I believe you can. ProxyPass can happen after your authentication handler.
Just try it.

Regards,


Jie