yes, i've been posting this for a couple days now, trying to get through it ....

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;

which should also send the right header.

and on a side ( but related ) note, if i change the

<Files>
to a  <Location> directive, nothing works .... attempting to enter the /protected directory which fires off the AuthCookie handler give me:
access to /home/httpd/htdocs/protected/index.html failed for 10.0.0.50 +, reason: file permissions deny server execution
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 ...

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?


In reply to more mod_perl configuration woes by geektron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.