deserts
大客部
级别: 总版主
精华:
0
发帖: 607
威望: 2 点
金钱: 1061 RMB
贡献值: 0 点
在线时间:1759(小时)
注册时间:2006-01-01
最后登录:2024-11-10
|
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 |
| |