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

Graham Dumpleton grahamd at dscpl.com.au
Wed May 4 17:55:40 EDT 2005

On 05/05/2005, at 5:58 AM, py pan wrote:

> 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?

Consider using Vampire extensions for mod_python. It will allow you to 
more than one .py file in a directory corresponding to each resource. 
site is:



More information about the Mod_python mailing list