[mod_python] Mod python + apache problem

Rafal Zawadzki bluszcz at jabberpl.org
Sat May 28 16:45:27 EDT 2005

Hello, I am trying to write some web application using modpython.

I failed at beginning, I cannot configure apache to work with mod-python.

I am using Debian Sarge, apache and libapache-mod-python2.3.

Fragments my configurations are:

<Directory /var/www/modpython>
        AllowOverride All
        AddHandler python-program .py
        PythonHandler mptest.py #i tried also with mptest (withoout .py)
        PythonDebug On

my mptest.py looks like:
jabberpl:/var/www/modpython# cat mptest.py
from mod_python import apache
def handler(req):
        req.write("Hello World!")
        return apache.OK

I started apache again... URL: http://jabberpl.org/modpython/

Apache show mptest.py source, any idea?

| Rafal "Bluszcz" Zawadzki : : :: ::|
| jid/mail: bluszcz<>jabberpl.org ::|
| http://bluszcz.jabberpl.org :: :::|

More information about the Mod_python mailing list