On Sat, Jan 03, 2004 at 12:15:16PM +1000, Matthew Smith wrote:
> You need to have the redirect thing.  I haven't fully understood how it 
> works but the redirect causes a second request or something like that 
> which allows the plugin to run.
> 
> The correct config directive is
> 
> PerlInitHandler Apache::RequestNotes
> 
> (note the 'Apache::') and make sure it is the init handler for all of 
> the locations that need the session info including the login page.
> 
> matt
>
I put the following in my virtual host container:

<location />
  PerlInitHandler Apache::RequestNotes
</Location>

I still get an ordinary 403 error when I try to access the protected
site.

The log shows:

saved location: /protected/ at
/usr/local/share/perl/5.8.2/Apache/AxKit/Plugin/Session.pm line 770,
<GEN2> line 2.
...
[Sat Jan  3 08:57:45 2004] [warn] [client 192.168.0.8] [AxKit] file
'[document root]/redirect' does not exist or is not readable

With:

<Location /redirect>
  PerlInitHandler Apache::RequestNotes
</Location>

which I have also seen recommended, I get an Internal Server Error, and
my log says:

Can't use an undefined value as a HASH reference at:
/usr/local/share/perl/5.8.2/Apache/AxKit/Plugin/Session.pm line 75.

Line 75 of Session.pm is:
$uri->query_form(%{$r->pnotes('INPUT')});

Taking the PerlInitHandler directive out of a Location block and leaving 
it in the main (in this case Virtual Host) configuration duplicates the 
situation where it is in a <location /> block.

I'm afraid I'm stumped.  I am vaguely suspicious that I have something
else misconfigured, but AxKit in my other virtual servers, so I believe
my main server configuration is correct.

Thanks for your time and effort.

Yours

Streph

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to