geektron has asked for the wisdom of the Perl Monks concerning the following question:
I have logging in via Apache::AuthCookie working, but I can't get logging *out* to work. (logging out was the real reason for using Apache::AuthCookie and not just AuthBasic in apache ).
here's everything i *think* is relevant to my server's configuration
NameVirtualHost 10.0.0.50 <VirtualHost 10.0.0.50> ServerName brian.lnstar.com + + <Perl> use lib qw# /home/httpd/htdocs/libs #; </Perl> + + PerlModule Apache PerlModule Apache::Registry PerlModule Apache::AuthCookie PerlModule TestCookie::AuthCookieHandler PerlSetVar TestCookiePath / PerlSetVar TestCookieLoginScript /login.pl PerlSetVar TestCookieExpires +2h PerlSetVar AuthCookieDebug 3 + + <Files ~ "^\.pl"> #<Location /> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI allow from all PerlSendHeader On #</Location> </Files> + + # 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. <Location /LOGIN> AuthType TestCookie::AuthCookieHandler AuthName TestCookie SetHandler perl-script PerlHandler TestCookie::AuthCookieHandler->login </Location> + + <Location /logout> AuthType TestCookie::AuthCookieHandler AuthName TestCookie SetHandler perl-script PerlHandler TestCookie::AuthCookieHandler->logout </Location> + + <Location /perl-status> SetHandler perl-script PerlHandler Apache::Status </Location> + + </VirtualHost>
logging in ( trying to access the /protected dir ) works properly with all the samples out of the distro.
logging out is sending me just the logout script back as plaintext. I've turnout on PerlSendHeader. i thought that would cover it as a blanket case. just in case ( well, it's still in the sampl), logout.pl has this line:
$r->content_type("text/html"); $r->status(200); $r->send_http_header;
and on a side ( but related ) note, if i change the
to a <Location> directive, nothing works .... attempting to enter the /protected directory which fires off the AuthCookie handler give me:<Files>
although all of my perms are OK, or at least wide open ( 777 ) for now, just to get things working. even my TestCookie::AuthCookieHandler module is 777 ...access to /home/httpd/htdocs/protected/index.html failed for 10.0.0.50 +, reason: file permissions deny server execution
I've been scanning the horsey book, going through the mod_perl FAQ ... and i can't find a thing.
i know i'm missing something obvious, aren't i?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: more mod_perl configuration woes
by simonm (Vicar) on Mar 10, 2004 at 02:36 UTC | |
by valdez (Monsignor) on Mar 10, 2004 at 10:47 UTC | |
|
Re: more mod_perl configuration woes
by perrin (Chancellor) on Mar 10, 2004 at 20:08 UTC | |
by geektron (Curate) on Mar 11, 2004 at 02:41 UTC | |
by perrin (Chancellor) on Mar 11, 2004 at 05:23 UTC |