httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Stefaniuk <>
Subject [users@httpd] Filtering incoming request with mod_ext_filter
Date Wed, 23 Oct 2013 16:07:08 GMT
I try to filter incoming HTTP request. Here is configuration of my filter:

LoadModule ext_filter_module modules/
ExtFilterDefine myFilter ftype=30 mode=input \
    cmd="c:/tools/perl/bin/perl.exe c:/temp/ c:/temp/dump.out"
<Directory "c:/Apache24/htdocs">
    SetOutputFilter myFilter

and Perl script I'm using:

use strict;
open(SAVE, ">$ARGV[0]")
    or die "can't open $ARGV[0]: $?";
while (<STDIN>) {
    print SAVE $_;
    print $_;

Apache version = httpd-2.4.6-win32-VC11

This doesn't work at all giving me an error "*AH00082: an unknown filter
was not added: myFilter*". However, when I set 'mode' to 'output' it work
as expected. Any clue on this?



View raw message