配置: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" )?????? 標(biāo)紅的需要加上
## bind to port (default: 80)
server.port??????????????? = 8080------------------訪問端口,我設(shè)置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"
記得這個(gè)需要設(shè)置到public目錄,不然按默認(rèn)的rails生成的文檔一些東西訪問不來的
-----------------------------------------------------------------------------------------------------
需要注意的是你開發(fā)的程序需要放在c盤下,不然找不到config/scgi.yaml這個(gè)文件
然后lighttpd必須裝在c盤下(當(dāng)前版本下1.4.11)
posted on 2007-01-02 21:08
kebo 閱讀(561)
評論(0) 編輯 收藏