Created
October 5, 2012 17:14
-
-
Save anonymous/3841077 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
print "Content-type:text/html\r\n\r\n" | |
print '<html>' | |
print '<head>' | |
print '<title>Hello Word - First CGI Program</title>' | |
print '</head>' | |
print '<body>' | |
print '<h2>Hello Word! This is my first CGI program</h2>' | |
print '</body>' | |
print '</html>' | |
ScriptAlias /cgi-bin/ /var/www/cgi-bin/ | |
<Directory “/var/www/cgi-bin”> | |
AllowOverride None | |
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch | |
Order allow,deny | |
Allow from all | |
AddHandler cgi-script .py | |
AddHandler default-handler .html .htm | |
</Directory> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment