httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] Getting filters to work
Date Mon, 18 Aug 2003 15:28:16 GMT
Cody Harris wrote:
> I have a simple perl program that writes to a file on my drive, but it
> doesn't execute. (And yes, i HAVE been restarting apache).

I had to try myself, and after some messing I got it to work (on Windows!).

    ExtFilterDefine manfilter_xyz \
        cmd="e:/usr/bin/perl.exe e:/" \
        mode=output \
        intype=text/html \
        # 10 = AP_FTYPE_RESOURCE

    <Directory "e:/usr/local/Apache2/manual">
        SetOutputFilter manfilter_xyz

And the little Perl script:

    use strict;

    while(<>) {
        print /^(.*?)(apache)(.*)$/i ? $1.uc($2).' !!!'.$3 : $_;

Works fine for me. I have some problems getting it to work on directory
indexes, however. I seem to only get a few headers (including URI: ???).

Robert Andersson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message