Python CGI: Difference between revisions
no edit summary
No edit summary |
|||
Line 10:
<pre>
ScriptAlias /cgi-bin/ /
<Directory /
AllowOverride None
Allow from all
Line 22:
Create Script:
sudo nano /
<syntaxhighlight lang="python">
#!/usr/bin/python3
Line 31:
import cgitb
cgitb.enable()
print("Content-Type: text/html;charset=utf-8")
print()
print("Hello World!")
</syntaxhighlight>
Change Permissions:
|