CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: mod_perl:
mod_perl and mod_jk problem

 



anenadic
New User

Feb 21, 2006, 10:47 AM

Post #1 of 2 (8591 views)
mod_perl and mod_jk problem Can't Post

Hi,

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.

Here is a snippet from my httpd.conf that defines the location for the servlet.
--------------------------------------------------------------
<Location /shibboleth-idp/SSO>
AuthType Fame
AuthName "Fame Authentication Service"
SetHandler perl-script
PerlAuthenHandler MyApache2::Fame::sso_checker
require valid-user
</Location>
--------------------------------------------------------------

Snippet from mod_jk settings:
--------------------------------------------------------------
jkMount /shibboleth-idp/* worker1
--------------------------------------------------------------

I am using Tomcat 5.15, Apache 2.0.55, mod_perl 2.0.1

Has anyone experienced similar problem?

Thanks VERY much in advance for any help on this.

Alex


risacher
New User

Mar 29, 2006, 1:28 AM

Post #2 of 2 (8468 views)
Re: [anenadic] mod_perl and mod_jk problem [In reply to] Can't Post

Try this (worked for me with same problem):

<Location /servlets-examples>
SetHandler jakarta-servlet
PerlInitHandler Auth::Init
PerlFixupHandler Auth::Access
JkMount ajp13
</Location>

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives