[mod_python] One file controlled site: howto

Jay Dorsey jay at jaydorsey.com
Tue Jan 6 09:39:44 EST 2004

On Mon, Jan 05, 2004 at 09:55:17AM +0100, fowlertrainer at anonym.hu wrote:
> Hello !
> I want to control my website with one file, the main.py.
> I want that:
>  - the main.py is let hidden in request !
You can do this with mod_python by adding a request handler 
in your httpd.conf file, similar to this:

<Directory /path/to/webroot>
AddHandler python-program
PythonHandler main

The main.py script will be executed each time a document is 
requested in the /path/to/webroot folder.


Jay Dorsey
jay at jaydorsey dot com

More information about the Mod_python mailing list