Apache Server configuration support - mod_ext_filter

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > mod_ext_filter





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mod_ext_filter
mark

2004-01-26, 10:33 am

I am trying to use mod_ext_filter to filter xml files through a perl
script. (See previoius post on my xml problem). It nearly works, but I
get extra 200 and 500 messages at the end of the output. That is,
sometimes it works, sometimes it fails, but always there is an additionl
message telling me aoubt a server misconfiguration.

I am running a newly compiled Apache 2.0.48 on Redhat 9.

Here is the appropriate section from httpd.conf:

ExtFilterDefine xslt mode=output intype=text/xml outtype=text/html
cmd=/var/www/perl/xslt.pl
#above on one lie, of course
<Files *.xml>
SetOutputFilter xslt;INCLUDES
ExtFilterOptions DebugLevel=1
</Files>

And here is my PERL file:

#!/usr/bin/perl -w

$q=$ENV{'SCRIPT_FILENAME'};

$result=`xsltproc $q`;
$error=$?>>8;
if($error==0)
{ print $result;
}

Not that the PERL script matters. I can run any program as a filter and
still get the same error. With or without the INCDLUDES part at the end.

Any ideas?

Thanks,

Mark

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com