常州五颜六色网络技术有限公司 -> 技术文档 -> Lighttpd的配置实例 登录 -> 注册 -> 回复主题 -> 发表主题

deserts 2007-06-11 22:59
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″
)
)
)
)
}


查看完整版本: [-- Lighttpd的配置实例 --] [-- top --]



Copyright © 2005-2014 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Time 0.013570 second(s),query:3 Gzip enabled