5.2.2 PythonOutputFilter

Syntax: PythonOutputFilter handler name
Context: server config
Module: mod_python.c

Registers an output filter handler under name name. Handler is a module name optionally followed :: and a callable object name. If callable object name is omitted, it will default to "outputfilter". Name is the name under which the filter is registered, by convention filter names are usually in all caps.

The module referred to by the handler can be a full module name (package dot notation is accepted) or an actual path to a module code file. The module is loaded using the mod_python module importer as implemented by the apache.import_module() function. Reference should be made to the documentation of that function for further details of how module importing is managed.

To activate the filter, use the AddOutputFilter directive.