Subject: | Trivial PerlAuthenHandler dies with 500 ISE and no log message |
Consider the following tied to PerlAuthenHandler:
sub handler
{
return Apache2::Const::OK;
}
since it didn't set $->auth_type or $r->user, Apache gets confused. Fair
enough. But it then generates a 500 ISE with no logging to this fact.
It's taken me all weekend to work out that I need to
sub handler
{
my $r = shift;
$r->auth_type("Basic");
$r->user("my-name-here");
return Apache2::Const::OK;
}
--
Paul Evans