分页: 15/30 第一页 上页 10 11 12 13 14 15 16 17 18 19 下页 最后页 [ 显示模式: 摘要 | 列表 ]

Lighttpd + mod_cgi + python+Perl简单配置 不指定

root , 2007/08/21 23:10 , Perl , 评论(0) , 阅读(10574) , Via 本站原创
一、安装Lighttpd配置
二、vi /usr/local/lighttpd/etc/lighttpd.conf
1、"mod_cgi",去掉前面的#
引用

2、index-file.names = ( "index.php", "index.html","index.htm", "default.htm" ,"index.cgi","index.pl","index.py")添加默认首页。
3、static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ,"cgi","py")
4、cgi.assign                 = ( ".pl"  => "/usr/bin/perl",
                               ".cgi" => "/usr/bin/perl" ,
                                ".py" => "/usr/bin/python" , )

三、测试:
vi /www/index.py

Tags: , ,
分页: 15/30 第一页 上页 10 11 12 13 14 15 16 17 18 19 下页 最后页 [ 显示模式: 摘要 | 列表 ]