为什么要先访问8080

为什么要先访问8080

我的一个网站,已经配置好了apache和tomcat的联动,域名使用的是www.xx.com,但每次重启apache和tomcat的服务后,都要先访问http://www.xx.com:8080,才能正常访问www.xx.com/index.html,如果直接访问www.xx.com,则将jsp页面显示成静态页面,请问是什么原因?
个人感觉是先访问http://www.xx.com:8080/index.jsp,编译好以后,再访问www.xx.com/index.html,才正常
你把ajp13相关的设置贴出来看看,包括tomcat和apache的url转发
以下是url转发
<VirtualHost www.XX.com:80>
<Directory /home/XX>
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>
<Directory /home/XX/WEB-INF>
    Order deny,allow
    Deny from all
</Directory>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/home/XX"
    ServerName www.XX.com
    ServerAlias XX.com
    ErrorLog "/home/logs/dummy-host.www.XX.com.com-error_log"
    CustomLog "|/usr/local/sbin/cronolog /home/logs/dummy-www.XX.com-access_log%Y%m%d" combined
RewriteEngine On
RewriteLog "/usr/local/apache2/logs/rewrite.log"
RewriteLogLevel 0
RewriteRule ^(.*)/$ $1/index.act [PT]
RewriteRule ^(.*)/index.html$ $1/index.act [PT]
RewriteRule ^(.*)/indexcol_(.*).html$ $1/indexcol.act?cid=$2 [PT]
RewriteRule ^(.*)/showlist_(.*)_(.*)_(.*)$ $1/showlist.act?cid=$2&page=$3&pageSize=$4 [PT]
RewriteRule ^(.*)/content_(.*).html$ $1/content.act?nid=$2 [PT]
JkMount /*.jsp worker2
JkMount /*.act worker2
</VirtualHost>

以下是workers.properties

worker.list=worker2
workei.worker2.host=www.XX.com
worker.worker2.port=8009
worker.worker2.lbfactor=3.5
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker "worker2" want ajp13 connection to be dropped after 5mn (timeout)
worker.worker2.socket_timeout=300

麻烦高手帮我看一下
谢谢hmglly
worker.worker2.type是啥?
加了之后就好了,谢谢阿