I posted this thread in mod_perl group:

http://www.gossamer-threads.com/lists/modperl/modperl/102273

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.

Rules2.pm

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->content_type('text/plain');
#$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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to