Sergij Borodych пишет:
Hi,

I have configuration:
apache-2.0.59
mod_perl-2.0.3

<Directory "/somedir/htdocs">
    PerlAuthzHandler MyModule::authorize

and in authorize:

if ...
    $r->handler('perl-script');
$r->set_handlers( (MP2 ? 'PerlResponseHandler' : 'PerlHandler') => \&somefunc );

If url is "/" all ok - authorize and after somefunc is called
But if I request all other files like "/test.html"
authorize called and set handlers, but somefunc not called :(

Also it called if request "/test" (try to resolve test.html I think)
and for non existing url(files) it(somefunc) called too

Where a problem?
Is a way for fix it without redirect or add new Perl*Handler (PerlMapToStorageHandler,PerlFixupHandler?) ?


I try at another servers with

Debian Etch
apache2                   2.2.3-4
libapache2-mod-perl2      2.0.2-2.4

FreeBSD 6.2-STABLE
apache-2.0.59
mod_perl2-2.0.3_1,3

and here all works fine

maybe its Gentoo specific bug ?
becouse problem exists only on
Gentoo ~x86
apache-2.0.59-r2
mod_perl-2.0.3-r1

How I discover(investigate) it ?


--
Sergij Borodych
http://bor.org.ua

Reply via email to