Looks all normal, since "can't find method foo" errors usually mean a package isn't used. but in my httpd.conf:[Thu Mar 4 16:55:00 2004] [error] auth_type TestCookie::AuthCookieHan +dler [Thu Mar 4 16:55:00 2004] [error] auth_name TestCookie [Thu Mar 4 16:55:00 2004] [error] ses_key_cookie [Thu Mar 4 16:55:00 2004] [error] uri /protected/ Can't locate object method "request" via package "Apache" at /home/htt +pd/htdocs/login.cgi line 5.
I'm using the sample config to make sure I can get things configured correctly. TestCookie::AuthCookieHandler gets called, and it looks like this:<Perl> use lib qw# /home/httpd/htdocs/libs #; </Perl> + + PerlModule Apache::AuthCookie PerlModule TestCookie::AuthCookieHandler PerlSetVar TestCookiePath / PerlSetVar TestCookieLoginScript /login.cgi PerlSetVar AuthCookieDebug 3 + + # These documents require user to be logged in. <Location /protected> AuthType TestCookie::AuthCookieHandler AuthName TestCookie PerlAuthenHandler TestCookie::AuthCookieHandler->authenticate PerlAuthzHandler TestCookie::AuthCookieHandler->authorize Require user programmer </Location> + + + + #this is the action of the login.pl script above. <Files LOGIN> AuthType TestCookie::AuthCookieHandler AuthName TestCookie SetHandler perl-script PerlHandler TestCookie::AuthCookieHandler->login </Files> <Location /perl-status> SetHandler perl-script PerlHandler Apache::Status </Location>
( it's just Sample::AuthCookieHandler from the distro renamed and moved. )package TestCookie::AuthCookieHandler; use strict; use Apache; use Apache::Constants qw(:common); use Apache::AuthCookie; use vars qw($VERSION @ISA); + + $VERSION = substr(q$Revision: 1.2 $, 10); @ISA = qw(Apache::AuthCookie);
so, i'm including the Apache module, and I have this as my server setup:
so i have a mod_perl enabled server, Apache::AuthCookie installed ... everything *should* work ... but it doesn't, and i'm lost ... any pointers?Server Version: Apache/1.3.27 (Unix) Resin/2.1.11 PHP/4.3.1 mod_perl/1 +.27
In reply to Apache::AuthCookie woes by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |