mod_jk Uri must start with /
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
- LoadModule jk_module modules/mod_jk.so
- # Where to find workers.properties
- #JkWorkersFile conf/workers.properties
- JkWorkersFile conf/workers.lb.properties
- # Shared memory file name
- JkShmFile logs/jk-runtime-status
- JkShmSize 10M
- # Where to put jk logs
- JkLogFile logs/mod_jk.log
- # Set the jk log level [debug/error/info]
- JkLogLevel info
- # Select the log format
- #JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
- # JkOptions indicate to send SSL KEY SIZE,
- #JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
- # JkRequestLogFormat set the request format
- #JkRequestLogFormat "%w %V %T"
- # Send JSPs for context /examples to worker named ajp13
- #jkMount /*.jsp ajp13
- JkMount /game c1
- JkMount /game/* c1
复制代码
/etc/httpd/conf/workers.lb.properties
目前只用一个worker1
- # The advanced router LB worker
- worker.list=c1
- # Define 192.168.0.1 worker using ajp13
- worker.worker1.port=8109
- worker.worker1.host=127.0.0.1
- worker.worker1.type=ajp13
- worker.worker1.lbfactor=1
- worker.worker1.maintain=60
- worker.worker1.cachesize=500
- worker.worker1.socket_timeout=60
- # Define the LB worker
- worker.c1.type=lb
- worker.c1.balance_workers=worker1
- worker.c1.sticky_session=True
- worker.list=jkstatus
- worker.jkstatus.type=status
复制代码
望请高手指点,谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有朋友遇到这个问题吗?