centos5.3下安装配置lighttpd优化配置

十二月 5th, 2009 Posted in Lighttpd | 阅读次数: 582 次

制作:高进波
时间:2009-07-14
主题:centos5.3下安装配置lighttpd,优化配置

 

vi /etc/lighttpd/lighttpd.conf

#通用优化设置
#server.max-worker=4
server.stat-cache-engine = "simple"
server.network-backend = "linux-sendfile"
server.event-handler = "linux-sysepoll"
server.max-keep-alive-requests = 0
server.max-keep-alive-idle=0
server.tag="Apache 2.4"
server.max-fds=60000
#etag.use-inode = "disable

 

#优化fastcgi,大流量并发设置
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi",
                                   "max-procs" => 40,
                                   "idle-timeout" => 20,
                                   "bin-environment" => (
                                      "PHP_FCGI_CHILDREN" => "9",
                                      "PHP_FCGI_MAX_REQUESTS" => "10000"
                                   ),
                                   "bin-copy-environment" => (
                                      "PATH", "SHELL", "USER"
                                  )

                                 )
                               )
                            )

 

#配置虚拟主机
$HTTP["host"] == "www.gaojinbo.com" {
status.status-url = "/vstatus"
server.name = "www.gaojinbo.com"
server.document-root = "/www/www.gaojinbo.com.com"
server.errorlog = "/www/log/www.gaojinbo.com.error.log"
}

 

完成!

相关日志:

Tags: ,

2 Responses to “centos5.3下安装配置lighttpd优化配置”

  1. 虫虫 Says:

    嘻嘻…来看看个…这么专业的文章哦…


  2. Treat a Yeast Infection Says:

    Recent Favourite Sites…

    [...]below you’ll find my recommended links page http://www.yeastinfectiontreatmentcure.net/links/ with some very good sites that I think you should definitely go visit[...]…


留下您的脚印