Peter Smith
psmith at consulting.co.nz
Sat Jul 24 14:51:50 EDT 2004
Move mptest.py into the test directory, and try pointing to http://server/test/mptest.py Regards Peter Peter Wong wrote: >Hi, > >Running RedHat 9 (Shrike; 2.4.20-8) using supplied apache (2.0.40) -- mod_python already included. > >Followed the instructions in the Manual for testing (sec. 2.4) ... > >* added this to my httpd.conf: > <Directory /some/directory/htdocs/test> > AddHandler mod_python .py > PythonHandler mptest > PythonDebug On > </Directory> > >* mptest.py contains: > >from mod_python import apache >def handler(req): > req.write("Hello World!") > return apache.OK > >* pointed my browser to http://server/mptest.py and I get this page back: > >from mod_python import apache >def handler(req): > req.write("Hello World!") > return apache.OK > >There are no errors in the error_log > >What's wrong??? > >Thanks, > >Paul > > > > > >
|