|
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
</Directory>
my mptest.py looks like:
jabberpl:/var/www/modpython# cat mptest.py
from mod_python import apache
def handler(req):
req.send_http_header()
req.write("Hello World!")
return apache.OK
jabberpl:/var/www/modpython#
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 :: :::|
|_JabberPL.org_sysadmin_:_::::_:::::|
|