<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post//</link>
<title><![CDATA[Lighttpd + mod_cgi + python+Perl简单配置]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Perl]]></category>
<pubDate>Tue, 21 Aug 2007 15:10:32 +0000</pubDate> 
<guid>https://blog.liuts.com/post//</guid> 
<description>
<![CDATA[ 
	一、安装Lighttpd配置<br/>二、vi /usr/local/lighttpd/etc/lighttpd.conf<br/>1、"mod_cgi",去掉前面的#<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>2、index-file.names = ( "index.php", "index.html","index.htm", "default.htm" ,"index.cgi","index.pl","index.py")添加默认首页。<br/>3、static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ,"cgi","py")<br/>4、cgi.assign&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ( ".pl"&nbsp;&nbsp;=> "/usr/bin/perl",<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ".cgi" => "/usr/bin/perl" ，<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".py" => "/usr/bin/python" ， )<br/></div></div><br/>三、测试：<br/>vi /www/index.py<br/><textarea name="code" class="python" rows="15" cols="100">
#!/usr/bin/python
print "hello world"
</textarea><br/>vi /www/cgi-bin/index.cgi<br/><textarea name="code" class="c" rows="15" cols="100">
#!/usr/bin/perl
print "Content-type: text/html&#92;n&#92;n";
print "hello world";
</textarea><br/>四、访问http://localhost/index.py、http://localhost/index.cgi<br/>Tags - <a href="https://blog.liuts.com/tags/mod_cgi/" rel="tag">mod cgi</a> , <a href="https://blog.liuts.com/tags/python/" rel="tag">python</a> , <a href="https://blog.liuts.com/tags/perl/" rel="tag">perl</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post//#blogcomment</link>
<title><![CDATA[[评论] Lighttpd + mod_cgi + python+Perl简单配置]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.liuts.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>