[mod_python] Setup apache for customized .py files to use mod_python ?

py pan python.pan at gmail.com
Wed May 4 15:58:58 EDT 2005


The documentation of mod_python says to put the following into the
http.conf of apache:

<Directory "c:/apache/Apache2/htdocs/test">
        AddHandler mod_python .py
        PythonHandler mptest
        PythonDebug On
    </Directory>

It seems to me that if I want to make use of this configuration, I
will have to name my py file to mptest.py. That will make this
configuration serves only one file. I did check and see that only
mptest.py works.

How can I setup the apache such that any *.py file in that folder works?

Thx.



More information about the Mod_python mailing list