[mod_python] Can mod_python control other Apache mdoules and Apacheconfiguration

Graham Dumpleton grahamd at dscpl.com.au
Wed May 17 18:28:59 EDT 2006


Damjan wrote ..
> Generaly my question is if it's possible to use a mod_python script to
> define massive virtual hosts, each with it's own specific configuration.
> 
> For example, a handler that would catch the request early
> (PythonPostReadRequestHandler??) and then setup the DocumentRoot,
> php_admin_value, ErrorLog, CustomLog or SCGIMount Apache directives.
> 
> Is this possible ?

Short answer is no.

You might be better off using mod_perl for this purpose as it has a means
of constructing Apache configuration programmatically at Apache startup.
For a prior reference to this, see:

  http://www.modpython.org/pipermail/mod_python/2003-March/013485.html

Graham


More information about the Mod_python mailing list