First off, make sure that your script is executable, and that regular users have permission to execute it. Make sure that the shebang line points to your python interpreter ie: #!/usr/bin/python
Now: You are looking for a section in httpd.conf that looks like this:
Code:
<Directory "/home/httpd/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
You are going to want to add 'ExecCGI' to the 'Options line:
Code:
Options Indexes FollowSymLinks MultiViews ExecCGI
HSH