in reply to more mod_perl configuration woes

I think you'd be better off asking on the mod_perl mailing list, since I have never used this module. However, I think I see the logout problem.

Like the login method, Apache::AuthCookie->logout does not generate a page and is not intended to handle requests directly. What you are supposed to do is take the logout.pl script in the distribution and set that up as your logout URL. It calls Apache::AuthCookie->logout internally, and also sends a response.

Regarding your <Files> issue, I don't think you really want to set it up to execute every file under / through Apache::Registry. That error message you got says it was trying to execute index.html as perl code.

Replies are listed 'Best First'.
Re: Re: more mod_perl configuration woes
by geektron (Curate) on Mar 11, 2004 at 02:41 UTC
    thanks.

    i did set up the logout as the Location like LOGIN, but it wouldn't do what i wanted. i've googled for days, and it looke like most people work around the issue ( like i did ) by hand-rolling a logout.cgi that just expires the cookies. it works, so TMTOWTDI

    i also changed the directives around after reading through the Horsey book again. i don't have it in front of me, but it was something like:

    <Location /> <FilesMatch "\.(pl|cgi)> Options +ExecCGI .... other stuff ... </FilesMatch> </Location>
    and that fixes the issue nicely.
      I'm still not sure you understood what I meant about the logout. It is not supposed to be set up like the LOGIN one. You are supposed to just use a logout.cgi script like the one that is included in the distribution here. There is no additional httpd.conf stuff required to make logout work.

      The <FilesMatch> config you have above is redundant. The <Location> part is not doing anything. This is not a mod_perl issue but rather an apache configuration issue, so you should read the apache docs about it. There's a good intro here.