Tomcat6.0.18-apache2.2整合总结

 

C:\WINDOWS\system32\drivers\etc\hosts里添加

192.168.0.18       www.tdrc.net
192.168.0.18       www.service.tdrc.net

安装Apache2.2时,域名t18,服务器名t18.

更改
DocumentRoot "D:/lhprog/Eclipse32ws/tdrcCMS1.0/WebRoot"

<Directory />
#    Options FollowSymLinks
    Options Indexes FollowSymLinks
    AllowOverride None
#    Order deny,allow
#    Deny from all
    DirectoryIndex index.html index.htm index.jsp
</Directory>
因为出现了Service Temporarily Unavailable,去掉
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Include前面的#
编辑conf\extra\httpd-vhosts.conf为
<VirtualHost *:80>
    #ServerAdmin concen@126.com
    #DocumentRoot "D:/lhprog/Eclipse32ws/tdrcCMS1.0/WebRoot"
    ServerName www.tdrc.net
    #ServerAlias www.tdrccms.com.cn
    ProxyIOBufferSize 8192
    ProxyRequests Off
    ProxyVia Full
    ProxyPass / http://www.service.tdrc.net:3000/ smax=50 max=200 ttl=120 retry=300
    DirectoryIndex index.html index.htm index.jsp
    ErrorLog "logs/tdrccms-error.log"
    CustomLog "logs/tdrccms-access.log" common
    JkMount /servlet/* ajp13
    JkMount /*.jsp ajp13
    JkMount /*.action ajp13
</VirtualHost>
http://www.tdrc.net可以访问了。
可是用ab压的时候并发总上不去,去掉
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf
Include前面的#,更改conf\extra\httpd-mpm.conf里
    ThreadsPerChild      1920
    MaxRequestsPerChild    0
并发就上去了。

遗留问题:提交内容后转向了notLogin.jsp有待解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值