[mod_python] config help

Jason Tesser JTesser at nbbc.edu
Thu Dec 11 11:26:57 EST 2003

I have the folowing script saved as test.py under htdocs.

from mod_python import apache

def handler(req):
	req.write("Hello World!")
	return apache.OK

I cannot get it to execute properly with mod_python.  Here the configuration from my apache config file.

<Directory /srv/www/htdocs/>
  AddHandler python-program .py
  PythonHandler test
  #PythonHandler mod_python.publisher
  PythonDebug On
I tried uncommenting the publisher handler which doesn't work at all for me.  What am I missing :-s

More information about the Mod_python mailing list