Brice RENAUD ( - 12/04/2003 - mod_activex_filter_module_0.2b

This module is a small example of an Output Filter developed for Apache 2.0.44 and tested up to 2.0.46.

It's only a simple hack of mod_case_filter to get a way to filter ActiveX on a proxy.
Actualy, the only way to filter ActiveX if your proxy is unable to do it is to use a TIS module chained with your proxy.
But the TIS is only capable of doing HTTP/1.0. If you need real performances, you'll want to use HTTP/1.1.

That's why I wrote this small module...

It has been generated with classical commands: apxs -g -n activex_filter and apxs -c -n
You just have to do make and make install to use it.

Don't forget to modify your httpd.conf.

Simple example of a working httpd.conf:
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0

Listen 80

LoadModule activex_filter_module modules/
AddOutputFilter ActiveXFilter html
ActiveXFilter On

ProxyRequests On
User nobody
ServerName trillian
UseCanonicalName Off
DefaultType text/plain
HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
ServerTokens Prod
ServerSignature On

A good way to make Apache acting like a proxy:
# BRE ( - 12/04/2003 - mod_activex_filter_0.2
# This is a small example of an apache compilation with only necessary compiled in modules
# to do a proxy with ActiveX Filtering enabled. These modules are:
# Compiled in modules: (get it with httpd -l)
# core.c
# mod_proxy.c
# proxy_http.c
# prefork.c (or worker.c if you prefer)
# http_core.c
# mod_mime.c
# mod_so.c
# and, of course, mod_activex_filter but this one is loaded dynamicaly at startup
./configure --disable-access --disable-auth --disable-include --disable-setenvif --enable-proxy --enable-proxy-http --disable-proxy-ftp --disable-proxy-connect --enable-mime --disable-status --disable-autoindex --disable-env --disable-asis --disable-cgi --disable-negociation --disable-dir --disable-imap --disable-alias --disable-userdir --disable-actions --enable-so --disable-negotiation --disable-log-config --with-mpm=prefork