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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to