免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: 轻逐微风
打印 上一主题 下一主题

[Web] 渴望高手赐教!tomcat+apache+mod_jk连接,出现500错误解决方法! [复制链接]

论坛徽章:
0
11 [报告]
发表于 2010-05-26 08:56 |只看该作者
vim /etc/httpd/conf/workers.properties
--
worker.list=wlb,jkstatus
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.wlb.type=lb
worker.wlb.balance_workers=ajp13w
worker.jkstatus.type=status
--


vim /etc/httpd/conf.d/jk.conf
--
# Load mod_jk module   LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties   
JkWorkersFile conf/workers.properties
# Where to put jk shared memory   
JkShmFile     logs/httpd/mod_jk.shm
# 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 %R"
# All requests go to Tomcat by default  
JkMount   /*.jsp     wlb
JkMount   /manager/*     wlb
--


参考一下吧  这是我用的。

论坛徽章:
0
12 [报告]
发表于 2010-05-26 17:51 |只看该作者
回复 11# blueswxs


    非常感谢,我回去试下,不懂的回来问你哈

论坛徽章:
0
13 [报告]
发表于 2010-05-26 17:53 |只看该作者
回复  blueswxs


    非常感谢,我回去试下,不懂的回来问你哈
轻逐微风 发表于 2010-05-26 17:51



   

论坛徽章:
0
14 [报告]
发表于 2014-10-22 06:48 |只看该作者
不错的文章 感谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP