Linux luogw-pc 3.5.0-48-generic #72~precise1-Ubuntu SMP Tue Mar 11 20:09:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
查看相关资源发现默认开启着
/etc/apache2/sites-enabled/000-default 有如下内容: ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory>
#!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello, World.";
#! /usr/bin/python print "Content-type: text/html\n\n" print "python : " print "Hello, World."
http://apache.jz123.cn/howto/cgi.html
初试CGI编程--python篇,布布扣,bubuko.com
原文地址:http://blog.csdn.net/scholar_ii/article/details/38729707