Apache, CGI, Python...

William Park opengeometry at yahoo.ca
Wed Jul 11 11:44:15 EDT 2001


On Wed, Jul 11, 2001 at 07:33:11AM +0000, Vincent A. Primavera wrote:
> Hello, Looking for some guidance as to the set up of Apache's
> httpd.conf for some basic CGI scripting practice in Python...  Any
> suggestions?

Since Python script is like any other CGI script, just rename the file
as '.cgi' and have '#!/usr/.../bin/python' as the first line.  If you
want '.py' to be considered as CGI script by Apache, then put
    AddHandler cgi-script .cgi .py	
in your httpd.conf.

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
8 CPUs cluster, (Slackware) Linux, Python, LaTeX, Vim, Mutt, Sc.




More information about the Python-list mailing list