some problems with mod_python

Greg Donald gdonald at
Mon Aug 27 22:29:30 CEST 2007

On 8/27/07, Johan <valpis at> wrote:
> This I added to httpd.conf
> <Directory /opt/site/htdocs/test>
>         AllowOverride All
>         AddHandler mod_python .py
>         PythonHandler mptest
>         PythonDebug On
> </Directory>

This is the syntax I have working locally:

# mod_python
<Directory /opt/local/apache2/htdocs/modpython>
  AddHandler python-program .py
  PythonHandler test
  PythonDebug On

In particular my AddHandler directive is different from yours.

Greg Donald

More information about the Python-list mailing list