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有待解决。