[mod_python] Getting 404's ...

Hugo van der Merwe s13361562 at bach.sun.ac.za
Sat May 18 11:54:17 EST 2002

Often, after loading a number of pages, including one with __auth__
method, from two different directories:

<Directory /var/www>
  AddHandler python-program .py
  PythonHandler mod_python.publisher

<Directory /var/www/newwebsite>
  AddHandler python-program .py
  PythonHandler mod_python.publisher

I sometimes get 404's. Alternating. I.e. I hit refresh, continually on
the same page, then it is sometimes 404's, sometimes it works.
Restarting the apache server usually results in it working great for a
while at least. How can I debug this, throw a bunch of prints in
publisher.py? Do prints show up in error.log though?

I have reason to believe that this only starts going haywire after I've
viewed some things in the newwebsite directory. This is in fact a "newer
version" of the things in the other. Might it be confusing the two? How
exactly does mod_python work, does loaded modules remain loaded, i.e.
they only get loaded once? (Can one have global variables that will then
maintain their value between page requests?)

Hugo van der Merwe

More information about the Mod_python mailing list