I am having a Apache-Tomcat assembly linked via mod_jk and a servlet that I want to protect with my own Perl Authentication Handler (servlet should not be accessible it the user is not previously authenticated by my Handler). Now, when I try to protect a normal page served by Apache with my Authentication handler, everything works fine. When I try to do the same with the servlet's location - my Authentication Handler fires up but it seems that mod_jk does not get to do the translation of the request to Tomcat so I get a FILE NOT FOUND error from Apache (it does not even get to Tomcat) after authentication is performed.

Now, servlet and mod_jk translation both work fine when the servlet location is not protected with my Handler.