LightTPD + mod_cgi + python简单配置
2009-05-13 07:33:33来源:未知 阅读 ()
配置
--- lighttpd.conf.orig Tue Apr 03 13:50:47 2007
+++ lighttpd.conf Tue Apr 03 13:52:22 2007
@@ -26,7 +26,7 @@
# "mod_simple_vhost",
# "mod_evhost",
# "mod_userdir",
-# "mod_cgi",
+ "mod_cgi",
# "mod_compress",
# "mod_ssi",
# "mod_usertrack",
@@ -43,7 +43,7 @@
server.errorlog = "c:/lighttpd/logs/lighttpd.error.log"
# files to check for if .../ is requested
-index-file.names = ( "index.php", "index.html",
+index-file.names = ( "index.php", "index.html","index.py",
"index.htm", "default.htm" )
## set the event-handler (read the performance section in the manual)
@@ -130,7 +130,7 @@
# which extensions should not be handle via static-file transfer
#
# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
-static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
+static-file.exclude-extensions = ( ".php", ".pl", ".fcgi",".py" )
######### Options that are good to be but not neccesary to be changed #######
@@ -217,7 +217,8 @@
#### CGI module
cgi.assign = ( ".pl" => "/usr/bin/perl",
- ".cgi" => "/usr/bin/perl" )
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
上一篇:WebServer架设总结
- Introducing NetBSD 5.0 by Andrew Doran 2009-05-13
- 见笑了,问一个很简单的问题 2009-05-13
- 有没有FreeBSD内核配置文件的中文版解释文档呢? 2009-05-13
- freebsd的目录结构 2009-05-13
- nfs配置 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash