apache+tomcat+jk2整合补充说明

本文请结合[转]谈谈我对apache+tomcat+jk2整合的理解,说明几点:

apache2 、tomcat5、jk2安装完毕以后只需要修改以下2个文件即可;
/usr/local/apache2/conf/workers2.properties
/usr/local/apache2/conf/httpd.conf其实现效果,所有访问http://chat.host.com的服务都通过Jk2传递到Tomcat5上;


具体修改如下:
/usr/local/apache2/conf/httpd.conf
……

<VirtualHost 211.154.254.90:80>
    ServerAdmin root@host.com
    DocumentRoot /opt/host/chat
    ServerName chat.host.com
    DirectoryIndex index.html index.jsp
</VirtualHost>

LoadModule jk2_module modules/mod_jk2.so

……

 

/usr/local/apache2/conf/workers2.properties

gger]
level=ERROR

[config:]
file=/usr/local/apache2/conf/workers2.properties
debug=0
debugEnv=0

# Alternate file logger
[logger.file]
#level=DEBUG
level=ERROR
file=/var/log/httpd/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/var/log/httpd/jk2.shm
size=1048576
debug=0
disabled=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
keepalive=1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
debug=0

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=ajp13:localhost:8009

[uri:chat.host.com/*]
worker=ajp13:localhost:8009
context=/

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值