» 您尚未 登录   注册 | 社区服务 | 帮助 | 社区 | 无图版


常州五颜六色网络技术有限公司 -> 技术文档 -> Lighttpd的配置实例
 XML   RSS 2.0   WAP 

--> 本页主题: Lighttpd的配置实例 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题
deserts


头衔:大客部大客部
该用户目前不在线
级别: 总版主
精华: 0
发帖: 606
威望: 2 点
金钱: 1060 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-03-22
查看作者资料 发送短消息 推荐此帖 引用回复这个帖子

Lighttpd的配置实例

server.modules =(
“mod_access”,
“mod_accesslog”,
“mod_fastcgi”,
“mod_rewrite”
)

mimetype.assign = (
“.html” => “text/html”,
“.htm” => “text/html”,
“.txt” => “text/plain”,
“.jpg” => “image/jpeg”,
“.png” => “image/png”,
“.mp3″ => “audio/x-mp3″,
“.mp4″ => “video/mp4″,
“.css” => “text/css”,
“.js” => “text/javascript”
)

server.document-root =”/var/www/railsapp/public/”
server.errorlog =”/var/log/lighttpd/lighttpd.error.log”
index-file.names =( “index.html” )
server.tag =”lighttpd”
accesslog.filename =”/var/log/lighttpd/lighttpd.access.log”
static-file.exclude-extensions =( “.php”, “.pl”, “.fcgi” )

server.port =80
server.pid-file =”/var/run/lighttpd.pid”

server.username = “zenz”
server.groupname = “zenz”

$HTTP[”host”] =~ “zenz.minidns.net” {
server.document-root = “/home/zenz/wordpress”
server.indexfiles = ( “index.php”, “index.html” )
index-file.names = ( “index.php”, “index.html”,
“index.htm”, “default.htm” )
compress.filetype = (”text/plain”, “text/html”, “text/css”, “text/javascript”)
url.rewrite = ( “^/$” => “index.php”, “^([^.]+)$” => “index.php/$1″,
“^/(archives|categories|comments|feed)/” => “/index.php” )
fastcgi.server = (”.php” =>
(”localhost” =>
(”socket” => “/tmp/phpadmin.socket”,
“bin-path” => “/usr/bin/php5-cgi -c /etc/php5/cgi/php.ini”,
“bin-environment” => (
“PHP_FCGI_CHILDREN” => “1″,
“PHP_FCGI_MAX_REQUESTS” => “50″
)
)
)
)
}


常州电信/网通机房,100M共享/10M独享/1000M共享/100M独享/电信+网通双线路服务器托管

Tel:0519-89991155 企业QQ:4006023839   5y6s Inc.
[楼 主] | Posted: 2007-06-11 22:59 顶端

常州五颜六色网络技术有限公司 -> 技术文档



Copyright © 2005-2009 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Total 0.025761(s) query 6, Gzip enabled
会员言论不代表本站立场 本站法律顾问:北京汇泽律师事务所 韩律师
QQ:点击这里给我发消息 /点击这里给我发消息 /点击这里给我发消息