On Nov 5, 2003, at 8:59 PM, Ian Langworth wrote:
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>
Shouldn't there be a AxAddStylemap in there like:
AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT
or do you have that covered above in the vhost?
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.
Do you have this in LogicalLemon::DirectoryIndex
$r = $r->filter_register();
to register your handler as a filter?
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.
Stacked handlers would be enabled with EVERYTHING=1. That's how mine's set up.
can't think of anything else off-hand
arne
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
