On Sat, Nov 20, 2010 at 3:05 AM, Eric Covener <covener@xxxxxxxxx> wrote: > On Sat, Nov 20, 2010 at 12:09 AM, Mohit Anchlia <mohitanchlia@xxxxxxxxx> wrote: >> I am trying to look at how handlers work so I created a very simple >> perl handler that just return "OK". And I added an entry "PerlModule" >> and the "PerlHandler". I also was able to build mod_perl2.so. When I >> do a GET request with handler ON I see that Handler gets called but >> then the call is not going further to the mod-jk worker. Can someone >> please tell me what might be going on? I thought OK will continue down >> the cycle. > > you have to return DECLINED if you want to let someone else to run > hooks like handler. I tried package Apache2::Rules2; #use lib '/home/.mohit/mod_perl-2.0.4/lib'; use Apache2::Const qw(:common); use Apache2::RequestRec (); use Apache2::RequestIO (); sub handler { my $r = shift; #$r->content_type('text/plain'); #$r->print("mod_perl rules!\n"); return DECLINE; # We must return a status to mod_perl } 1; # This is a perl module so we must return true to perl But even though I am using DECLINE it doesn't continue going to mod-jk. Handler just becomes the final destination in this case. How can I write handler such that it continues sending request to mod-jk. In virtual host I added this: PerlModule Apache2::Rules2 SetHandler perl-script PerlHandler Apache2::Rules2 PerlSendHeader On > > -- > Eric Covener > covener@xxxxxxxxx > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx