全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3064|回复: 6
打印 上一主题 下一主题

[lighttpd] 急!修改了一下lighttpd.conf,网站直接打不开了。

[复制链接]
跳转到指定楼层
1#
发表于 2010-2-27 18:15:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
                               "mod_rewrite",
                               "mod_redirect",
#                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
                               "mod_auth",
#                               "mod_status",
                               "mod_setenv",
                               "mod_fastcgi",
                               "mod_webdav",
                               "mod_proxy_core",
                               "mod_proxy_backend_http",
                               "mod_proxy_backend_fastcgi",
#                               "mod_proxy_backend_scgi",
#                               "mod_proxy_backend_ajp13",
                               "mod_simple_vhost",
                               "mod_evhost",
                               "mod_userdir",
#                               "mod_cgi",
                               "mod_compress",
                               "mod_ssi",
#                               "mod_usertrack",
                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
                                "mod_accesslog" )

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root        = "/home/kloxo/httpd/default/"

## where to send error-messages to
server.errorlog             = "/home/kloxo/httpd/lighttpd/error.log"

# files to check for if .../ is requested
index-file.names            = (  "index.php", "index.html",
                                "index.htm", "default.htm" )

## set the event-handler (read the performance section in the manual)
server.event-handler = "linux-sysepoll"

# Use the "Content-Type" extended attribute to obtain mime type if possible
#mimetype.use-xattr        = "enable"


## send a different Server: header
## be nice and keep it at lighttpd
# server.tag                 = "lighttpd"

#### accesslog module
accesslog.filename          = "/home/kloxo/httpd/lighttpd/ligh.log"

#### compress module
compress.cache-dir         = "/tmp/lighttpd/cache/compress/"
compress.filetype          = ("text/plain", "text/html", "text/javascript", "text/css")

#### proxy module
## read proxy.txt for more info
#$HTTP["url"] =~ "\.php$" {
#       proxy-core.balancer = "round-robin"
#       proxy-core.allow-x-sendfile = "enable"
#       proxy-core.protocol = "http"
#       proxy-core.backends = ( "192.168.0.101:80" )
#       proxy-core.max-pool-size = 16
#}


#### fastcgi module
## read fastcgi.txt for more info
## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
#$HTTP["url"] =~ "\.php$" {
#       proxy-core.balancer = "round-robin"
#       proxy-core.allow-x-sendfile = "enable"
#       proxy-core.check-local = "enable"
#       proxy-core.protocol = "fastcgi"
#       proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
#       proxy-core.max-pool-size = 16
#}


#### CGI module
#cgi.assign                 = ( ".php" => "/home/httpd/nobody.sh" )
#

#### SSL engine
#ssl.engine                 = "enable"
#ssl.pemfile                = "/etc/lighttpd/program.pem"

#### status module
#status.status-url          = "/server-status"
#status.config-url          = "/server-config"

#### expire module
expire.url = (
  "/css/" => "access 12 hours",
  "/js/" => "access 12 hours",
  )

#### ssi
ssi.extension              = ( ".shtml" )

#### rrdtool
#rrdtool.binary             = "/usr/bin/rrdtool"
#rrdtool.db-name            = "/var/www/lighttpd.rrd"

#### setenv
#setenv.add-request-header  = ( "TRAV_ENV" => "mysql://user@host/db" )
#setenv.add-response-header = ( "X-Secret-Message" => "42" )

## for mod_cml
## don't forget to add index.cml to server.indexfiles
# cml.extension               = ".cml"
# cml.memcache-hosts          = ( "127.0.0.1:11211" )

#### variable usage:
## variable name without "." is auto prefixed by "var." and becomes "var.bar"
#bar = 1
#var.mystring = "foo"

## integer add
#bar += 1
## string concat, with integer cast as string, result: "www.foo1.com"
#server.name = "www." + mystring + var.bar + ".com"
                               "mod_userdir",
#                               "mod_cgi",
                               "mod_compress",
                               "mod_ssi",
#                               "mod_usertrack",
                               "mod_expire",
#                               "mod_secdownload",
#                               "mod_rrdtool",
                                "mod_accesslog" )

## a static document-root, for virtual-hosting take look at the
## server.virtual-* options
server.document-root        = "/home/kloxo/httpd/default/"

## where to send error-messages to
server.errorlog             = "/home/kloxo/httpd/lighttpd/error.log"

# files to check for if .../ is requested
index-file.names            = (  "index.php", "index.html",
                                "index.htm", "default.htm" )

## set the event-handler (read the performance section in the manual)
server.event-handler = "linux-sysepoll"
"/etc/lighttpd/lighttpd.conf" 341L, 11729C written

重启后直接打不开网站了,大家帮忙看看是什么原因? 发帖有限制,我删掉了一部分未修改代码。
2#
发表于 2010-2-27 18:38:08 | 只看该作者
不懂 帮顶
3#
发表于 2010-2-27 19:39:00 | 只看该作者
你不是安装了kloxo面板吗?干嘛还动文件?
4#
发表于 2010-2-27 19:39:53 | 只看该作者
具体我也不知道哪儿错了,
不过你可以切换到apache.
5#
 楼主| 发表于 2010-2-27 20:11:52 | 只看该作者
还原后好了,多开了几个模块,有点问题。
开启压缩,开启linux-sysepoll,多开了几个线程。感觉速度提升很多,能跟nginx有一拼,主要是心理上,呵呵

[ 本帖最后由 xiusha 于 2010-2-27 20:16 编辑 ]
6#
发表于 2010-2-28 13:18:33 | 只看该作者
有备份原文件不?

还原回去吧。

是因为什么问题去修改的?
7#
发表于 2010-2-28 13:19:34 | 只看该作者

回复 5# 的帖子

呵呵,lighttpd和nginx都是轻量型的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-28 05:07 , Processed in 0.061233 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表