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