Created
July 30, 2014 19:26
-
-
Save wyattjoh/49fd5488338a0eff4ee9 to your computer and use it in GitHub Desktop.
Python CGI Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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