免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2765 | 回复: 4
打印 上一主题 下一主题

[Web] lighttpd,启动报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-11 22:47 |只看该作者 |倒序浏览
/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,和这个有关系吗?

问题解决了!!!

[ 本帖最后由 vv0885 于 2008-9-12 10:35 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-09-12 15:05 |只看该作者
line: 268 pos: 5 parser failed somehow near here:

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

论坛徽章:
0
3 [报告]
发表于 2008-09-12 17:22 |只看该作者
原帖由 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.
是这一行的问题

[ 本帖最后由 vv0885 于 2008-9-12 17:35 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2008-09-12 21:38 |只看该作者
没安装pcre

论坛徽章:
0
5 [报告]
发表于 2008-09-12 21:56 |只看该作者
原帖由 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP