CGI Handler

CGI handler is a handler that emulates the CGI environment under mod_python.

To use it, simply add this to your .htaccess file:

         SetHandler python-program
         PythonHandler cgihandler
    

CGI is not exactly the same as cgihandler

The cgihandler reloads the module for every hit. However, the modules imported by the main module do not get reloaded. This is good for performance, but if your CGI scripts relied on this functionality, they will be broken.

In my tests, the cgihandler was leaking some memory. I haven't been able to figure out why, I suspect it has something to do with having to reload the same module a lot.


Last modified: Mon Oct 16 23:05:38 EDT 2000