lighttpd,启动报错

lighttpd,启动报错

/etc/init.d/lighttpd start
Starting lighttpd: can't handle '$HTTP[url] =~ ...' as you compiled without pcre support.
(perhaps just a missing pcre-devel package ?)
2008-09-11 22:47:18: (configfile.c.855) source: /etc/lighttpd/lighttpd.conf line: 268 pos: 5 parser failed somehow near here: {
[FAILED]

    261 #### both rewrite/redirect support back reference to regex conditional using %n
    262 #$HTTP["host"] =~ "^www\.(.*)" {
    263 #  url.redirect            = ( "^/(.*)" => "http://%1/$1" )
    264 #}
    265
    266 $HTTP["host"] == "www.web.com" {
    267   $HTTP["url"] =~".jsp|.go|.do|action|/$" {
    268     proxy.server = (""=>(("host" => "192.168.0.1", "port" => 8080)))
    269   }
    270 }
    271
    272

系统是as4的
pcre-4.5-3.2.RHEL4,和这个有关系吗?

问题解决了!!!

line: 268 pos: 5 parser failed somehow near here:

这个明显是配置文件的错了


QUOTE:
原帖由 xiaoyu9805119 于 2008-9-12 15:05 发表
line: 268 pos: 5 parser failed somehow near here:

这个明显是配置文件的错了

还真不是

Starting lighttpd: can't handle '$HTTP[url] =~ ...' as you compiled without pcre support.
是这一行的问题

没安装pcre


QUOTE:
原帖由 xi2008wang 于 2008-9-12 21:38 发表
没安装pcre

没装 pcre-devel-4.5-3.2.SEL4

我也很奇怪,rpm -qa | grep pcre,只有pcre-4.5-3.2.RHEL4,没有pcre-devel