Kevin Ballard
kevin at sb.org
Fri Dec 19 15:21:31 EST 2003
What's your mptest.py look like? Most likely, it's something like from apache import * def handler(req): req.write("Hello world!") return apache.OK Is that right? If so, add this line before the req.write line: req.content_type = "text/plain" On Dec 19, 2003, at 11:51 AM, Red Conecta wrote: > I want to try mod_python, but something doesn't work fine > > I'm using Apache 2.0.47 (Mandrake Linux/1.6.91mdk) mod_python/3.0.1 > Python/2.2.2 in a Mandrake9.1 and my http2.conf is: > > ... > LoadModule python_module extramodules/mod_python.so > ... > <Directory /var/www/html> > AddHandler python-program .py > PythonHandler mptest > PythonDebug On > </Directory> > > and, of course there's a mptest.py in /var/www/html > > But pointing to my mptest.py, my mozilla opens the dialog for > downloading the file. > > What's wrong? -- Kevin Ballard kevin at sb.org http://www.tildesoft.com http://kevin.sb.org
|