tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <>
Subject mod-jk not called after PerlHandler gets called
Date Tue, 23 Nov 2010 01:34:10 GMT
I posted this thread in mod_perl group:

I thought I should ask here as well. I have a perl handler in VirtualHost:

JkMount /bridge/* tc

PerlModule Apache2::Rules2
SetHandler modperl
PerlInitHandler Apache2::Rules2
PerlSendHeader On

This Handler just returns DECLINED. After this handler is called the
apache web server tries to find the document on the web server instead
of forwarding it to "JkMount ..." nod-jk worker. I get "404" and in
the access logs of apache I see that it's trying to locate the
document on the same server instead of using JkMount to forward the
request to mod-jk.

How can I make this work? There is nothing online on this topic.

package Apache2::Rules2;
#use lib '/home/.mohit/mod_perl-2.0.4/lib';
use strict;
use warnings;
use Apache2::Const qw(:common);
use Apache2::RequestRec ();
use Apache2::RequestIO ();
sub handler {
my $r = shift;
#$r->print("mod_perl rules!\n");
return DECLINED; # We must return a status to mod_perl
1; # This is a perl module so we must return true to perl

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message