Apache settings and Python CGI

Ignacio Vazquez-Abrams ignacio at openservices.net
Thu Sep 20 00:15:13 EDT 2001


On 19 Sep 2001, rainlet wrote:

> Can anyone tell me how to do the settings in Apache to get my Python
> CGI run? I have tried several ways I found in the Internet but in
> vain. How many conf files should I set up? Or can any one MAIL me the
> conf files if you get your CGI run correctly. Thank you!

Besides 'AddHandler cgi-script .py .pyc .pyo', you also need to have 'Options
+ExecCGI' in the Directory, Location, or VirtualHost that you want to have the
Python scripts in. Adding .py, .pyc, and .pyo to DirectoryIndex is optional.

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list