Skip to content

Instantly share code, notes, and snippets.

@wyattjoh
Created July 30, 2014 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wyattjoh/49fd5488338a0eff4ee9 to your computer and use it in GitHub Desktop.
Save wyattjoh/49fd5488338a0eff4ee9 to your computer and use it in GitHub Desktop.
Python CGI Apache
<VirtualHost *:80>
DocumentRoot /var/www/html/web/
<Directory /var/www/html/web/>
Options FollowSymLinks ExecCGI
AddHandler cgi-script .py
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# Turn on cgi
ln -s /etc/apache/mods-available/cgi.load /etc/apache/mods-enabled/cgi.load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment