[mod_python] conditions for a 404

David Bear David.Bear at asu.edu
Thu May 25 13:41:55 EDT 2006

I have a file called tddb.py which contains

from mod_python import session

def index(req):
  req.content_type = "text/plain"
  req.write("hello world")
  keys = req.keys()
  for k in keys:
    req.write("object name is %s " % k)
  return apache.OK

It lives in a directory where publisher is set as the handler for all
.py files.

When I run this via url http://myserver/tddb.py apache returns a 404

I've checked that the file perms on 755 and group own by the webserver

I'm getting lost here. the more I use modpython the less I understand
it. What could be wrong?

David Bear
phone: 	480-965-8257
fax: 	480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 "Beware the IP portfolio, everyone will be suspect of trespassing"

More information about the Mod_python mailing list