ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
MODPERL and Reverse Proxy
by Sumit Shah other posts by this author
Dec 7 2006 12:37PM messages near this date
Re: Fixing a mod_perl module | dhandler not performing as expected
Hello All,

I am trying to setup my Apache in such a way that for any .jsp requests 
it invokes a Perl Handler. After invoking the Perl handler, it should 
use the Reverse proxy setup to forward the same request to another server.

Here is my configuration(httpd.conf):

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule perl_module modules/mod_perl.so

<FilesMatch "\.(jsp|cgi|gif|html)$"> 
        PerlHeaderParserHandler My::RequestHandler
</FilesMatch> 

ProxyRequests     Off
ProxyPreserveHost On
ProxyPass               / http://38.118.10.188:8035/
ProxyPassReverse  / http://38.118.10.188:8035/

I want the request to come to My::RequestHandler FIRST and then go to 
the ProxyPass Directive. It does not do this. It BYPASSES my handler and 
goes to the Reverse Proxy.
I would appreciate any suggestions.

Thanks
Sumit

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved