Re: Filtering incoming request with mod_ext_filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 23, 2013 at 12:07 PM, Daniel Stefaniuk <daniel.stefaniuk@xxxxxxxxx> wrote:
I try to filter incoming HTTP request. Here is configuration of my filter:

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

and Perl script I'm using:

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

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?

Were you using "SetInputFilter myFilter" when you had "mode=input"?
 

Thanks

Daniel



--
Born in Roswell... married an alien...
http://emptyhammock.com/

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux