[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Apache::AuthCookieDBI and SecretKeyFile
From: Brian Clarkson <brian () austinunleashed ! com>
Date: 2004-03-27 0:54:44
Message-ID: 4064D0D4.8050909 () austinunleashed ! com
[Download RAW message or body]
Actually, with a little bit of help and a little config tweaking I got
this working.
1. created separate include files for the Perl directives and the
Location/ Directory directives. one is in the main server config ( Perl
directives) and the other is part of the VH config.
2. realized that part of the problem with the testing setup was that
/LOGIN was also considered protected because of the PerSetDirectory
being set to / ... changing that to /logintest fixed it, and I can now
log into the sample part of the site.
I'll need to make a few changes from another thread to finish the
install of this, namely aliasing the /LOGIN Location to something
'outside' of the docroot ( per a thread on Apache::AuthCookie ).
thanks for the help
--b--
Nick Phillips wrote:
> On 24/03/2004, at 6:24 AM, Brian Clarkson wrote:
>
>> The WhateverDBI_SecretKeyFile seems to be everyone's problem with this
>> module. I've searched around, read most people's fixes, but none of
>> them work for me. Here's my error_log snippet:
>>
>> [Tue Mar 23 12:04:58 2004] [error] access to /LOGIN failed, reason:
>> Apache::AuthCookieDBI: didn't have the secret key for auth realm JBG
>> [Tue Mar 23 12:04:58 2004] [error] access to /logintest failed,
>> reason: Apache::AuthCookieDBI: didn't the secret key from for auth
>> realm JBG
>>
>> The host in question is a VirtualHost. My first configuration
>> attempt, which matches one of the more common solutions ( putting the
>> PerlSetVar directive before the module load ) doesn't do the trick:
>
>
> You *must* put *all* the PerlSetVar configuration for AuthCookie* in the
> *main* apache
> configuration, not in a virtual host section or similar.
>
> This is because it is read in a BEGIN block, and there is no current
> request and hence no
> appropriate virtual host at that stage.
>
> It's in the docs, IIRC.
>
>
>
> Cheers,
>
>
> Nick
>
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic