Running cgi-scripts on my home Apache server
Sheila King
sheila at thinkspot.net
Wed Jan 10 16:46:44 EST 2001
Thanks SOOO much! This worked perfectly.
(Of course it is simple, when you already know how!)
:D
--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/
On Wed, 10 Jan 2001 21:35:18 +0100, Gerhard Häring <gerhard.nospam at bigfoot.de>
wrote in comp.lang.python in article <3A5CC786.4B3C53B8 at bigfoot.de>:
:Yes, it's actually quite simple:
:
:1) Add the following line at the end of {Path of Apache}\conf\httpd.conf
:
:ScriptInterpreterSource Registry
:
:2) give your CGI scripts the extension .py (the Python installer should
:have registered .py, .pyc, .pyo to be handled by python.exe), as in this
:script:
:
:file test.py in cgi-bin:
:########################
:#!/usr/bin/env python
:
:print 'Content-type: text/html\n\nhello!'
More information about the Python-list
mailing list