配置:server.modules
server.modules = (
"mod_rewrite",
"mod_redirect",
"mod_access",
"mod_status",
"mod_scgi",
"mod_accesslog" )
配置
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
#### accesslog module
accesslog.filename = "c:/depot/log/access.log"
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi",".scgi" ) 标红的需要加上
## bind to port (default: 80)
server.port = 8080------------------访问端口,我设置8080
## error-handler for status 404
server.error-handler-404 = "/dispatch.scgi"
-----------------------------------------------
scgi.server = ("dispatch.scgi" => ((
"host" => "127.0.0.1",
"port" => 9999,
"check-local" => "disable"
)) )
scgi.debug=3
status.status-url = "/server-status"
status.config-url = "/server-config"
-------------------------------------
## server.virtual-* options
server.document-root = "c:/depot/public"
记得这个需要设置到public目录,不然按默认的rails生成的文档一些东西访问不来的
-----------------------------------------------------------------------------------------------------
需要注意的是你开发的程序需要放在c盘下,不然找不到config/scgi.yaml这个文件
然后lighttpd必须装在c盘下(当前版本下1.4.11)
posted on 2007-01-02 21:08
kebo 阅读(553)
评论(0) 编辑 收藏