[mod_python] won't run

Jonas Geiregat kemu at sdf-eu.org
Sat May 10 16:33:34 EST 2003


I installed mod_python the test example worked. 
Now I would like to learn to use it.
When I add this to my apache config file:
   1077 <Directory /home/linhost/control>
   1078         SetHandler python-program
   1079         PythonHandler mod_python.publisher
   1080 </Directory>

and in /home/linhost/control I place a file test.py with contents:
""" Publisher example """

def say(req, what="NOTHING"):
    return "I am saying %s" % what


I get this http://62.221.205.240/control/hello.py/say
Please help me out Regards Jonas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20030510/de621b90/attachment-0003.htm


More information about the Mod_python mailing list