newbie help for mod_python

Jochen Kaechelin debianfreak at freenet.de
Tue Feb 22 17:21:15 EST 2005


I run debian sid and apache2 with libapache2-mod-python2.3
and I added these lines

<Directory /var/www>
   AddHandler mod_python .py
   PythonDebug On
</Directory>

in a virtualhost container.

and I have the following python-file:

from mod_python import apache
def requesthandler(req):
 req.content_type = "text/plain"
 req.write("HELLO")
 return apache.OK

But the file is not executed - instead a download-dialog
is opened.

Any suggestions?

Thanx.


-- 
Jochen Kaechelin



More information about the Python-list mailing list