I'm trying my best to set up filtering for a mod_perl module.
Specifically, I'm trying to get Apache::Gallery to run through
AxKit as well as write a custom directory indexer that spits
out more metadata than AxHandleDirs would.
My configuration (minus the analagous A::G stuff) looks like:
<Location /test>
PerlModule Apache::Filter
SetHandler perl-script
PerlSetVar Filter On
PerlHandler LogicalLemon::DirectoryIndex AxKit
AxContentProvider Apache::AxKit::Provider::Filter
AxAddProcessor text/xsl /style/xsl/directoryindex.xsl
AxAddProcessor text/xsl /style/xsl/document.xsl
</Location>
By itself, LogicalLemon::DirectoryIndex spits out well-formed
XML of a directory listing and returns DECLINED if it's not
operating on a directory. Unfortunately, once I set up filtering
for either of the modules with the configuration above,
I receive Internal Server Errors when I try to access individual
files, not directories.
The error log looks like this:
[Wed Nov 5 23:48:54 2003] [error] Can't locate object
method "get_handlers" via package "Apache::Filter" at
/usr/local/stow/perl-5.8.x/lib/site_perl/5.8.1/Apache/Filter.pm
line 105.
The only significant insight I've found is that PERL_STACKED_HANDLERS
needs to be enabled when configuring mod_perl -- my mod_perl has
been configured with EVERYTHING=1, which should cover that.
Essentially, my filtering works for directories, not files.
Any ideas?
--
Ian Langworth
Project Guerrilla
Northeastern University
College of Computer and Information Science
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]