httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bishop <bish...@sco.com>
Subject Re: new toy -- mod_ext_filter
Date Wed, 27 Sep 2000 21:44:04 GMT
Total security thing here.

..or am I alone in thinking this?

Can this thing be put in .htaccess once the server has in?

 - bish
Calming that jerking Knee...

Jeff Trawick wrote:
> 
> mod_ext_filter filters the response body using an external program.
> The response body received by mod_ext_filter is written to the external
> program's standard input; the replacement response body is read from
> the external program's standard output.  Existing programs can thus
> be used to filter output.  Try /bin/sort for a good laugh.
> 
> mod_ext_filter.c is at http://www.apache.org/~trawick/mod_ext_filter.c.
> 
> Sample configuration:
> 
> <IfModule mod_ext_filter.c>
> 
> <Location /c>
> AddOutputFilter EXTFILTER
> ExtFilterCmd /usr/bin/enscript --color -W html -Ec -o - -
> ExtFilterOptions LogStderr
> AddType text/html .c
> </Location>
> 
> </IfModule>
> 
> In this example, files in location /c will be HTML-ized by the
> enscript program.  (We assume that we have C-language files there.)
> 
> The filter EXTFILTER (mod_ext_filter) will start enscript with the
> specified parameters and pass the response body through enscript.  The
> LogStderr option specifies that the stderr of the external filter
> command (enscript in this example) should be written to the apache
> log.
> 
> A little more text is at http://www.apache.org/~trawick/README.
> 
> Let me know if you play with it and find that it sucks even more than
> you anticipated...
> 
> --
> Jeff Trawick | trawick@ibm.net | PGP public key at web site:
>      http://www.geocities.com/SiliconValley/Park/9289/
>           Born in Roswell... married an alien...

--

   "I've ALWAYS been intimidating." -- D Michael Drangula

Mime
View raw message