LightTPD + mod_cgi + python简单配置

2009-05-13 07:33:33来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

安装LightTPD
配置
--- 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架设总结

下一篇:slackware安装及kde汉化