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 [email protected]
#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有待解決。