Apache web server and CGI

Jeffrey Froman jeffrey at I.slack
Mon Aug 9 16:36:00 CEST 2004

Lad wrote:

> How can I set up Apache web server to use Python for CGI processing( for
> file *.py). Thanks for help

A simple method would be to include the line:

AddHandler cgi-script .py

in your httpd.conf. This should work fine so long as your .py files start
with a proper invocation of the python interpreter (i.e.,
#!/usr/bin/python). You might also want to look at mod_python


More information about the Python-list mailing list