免费注册 查看新帖 |

Chinaunix

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

mod_jk Uri must start with / [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-14 10:39 |只看该作者 |倒序浏览
CentOS 5.3 64位。
系统自带apache httpd-2.2.3-22.el5.centos.1
mod_jk-1.2.28-httpd-2.2.X.so
tomcat 6.0.20

tail -f /var/log/httpd/mod_jk.log  经常报如下错误
[warn] map_uri_to_worker_ext::jk_uri_worker_map.c (962): Uri * is invalid. Uri must start with /

/etc/httpd/conf.d/mod_jk.conf

  1. LoadModule jk_module modules/mod_jk.so

  2. # Where to find workers.properties
  3. #JkWorkersFile conf/workers.properties
  4. JkWorkersFile conf/workers.lb.properties

  5. # Shared memory file name
  6. JkShmFile logs/jk-runtime-status

  7. JkShmSize 10M

  8. # Where to put jk logs
  9. JkLogFile logs/mod_jk.log

  10. # Set the jk log level [debug/error/info]
  11. JkLogLevel info

  12. # Select the log format
  13. #JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

  14. # JkOptions indicate to send SSL KEY SIZE,
  15. #JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

  16. # JkRequestLogFormat set the request format
  17. #JkRequestLogFormat "%w %V %T"


  18. # Send JSPs for context /examples to worker named ajp13
  19. #jkMount /*.jsp ajp13
  20. JkMount /game c1
  21. JkMount /game/* c1
复制代码


/etc/httpd/conf/workers.lb.properties
目前只用一个worker1

  1. # The advanced router LB worker
  2. worker.list=c1

  3. # Define 192.168.0.1 worker using ajp13
  4. worker.worker1.port=8109
  5. worker.worker1.host=127.0.0.1
  6. worker.worker1.type=ajp13
  7. worker.worker1.lbfactor=1
  8. worker.worker1.maintain=60
  9. worker.worker1.cachesize=500
  10. worker.worker1.socket_timeout=60

  11. # Define the LB worker
  12. worker.c1.type=lb
  13. worker.c1.balance_workers=worker1
  14. worker.c1.sticky_session=True
  15. worker.list=jkstatus
  16. worker.jkstatus.type=status

复制代码


望请高手指点,谢谢!

论坛徽章:
0
2 [报告]
发表于 2009-07-27 10:52 |只看该作者
没有朋友遇到这个问题吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP