workers.properties
httpd.conf
如果嫌httpd.conf文件配置太长很不舒服,可以另写一个文件,在httpd.conf文件里引入新写的文件
比如添加一句:Include conf/vhost/httpd_vhost.conf
在httpd_vhost.conf文件里配置虚拟主机信息,即配置tomcat服务信息
<VirtualHost *:80>
ServerName cms.tezt.flashapp.cn
JkMount /*.jsp cms
JkMount /imgurl* cms
JkMount /imgurl/* cms
DocumentRoot "/Apps/cms-tomcat-6.0.32/web/cms"
CustomLog "|/Apps/cronolog-1.6.2/sbin/cronolog -S /Apps/apache2/logs/access.log /Data/logs/apache/cms/%Y/%m/access.log.%m%d" combined
</VirtualHost>
<Directory "/Apps/cms-tomcat-6.0.32/web/cms">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
workers.properties配置文件的配置:
worker.list=jkstatus,cms
worker.jkstatus.type=status
#worker.template.port=8009
worker.template.type=ajp13
#worker.template.connection_pool_timeout=600
#worker.template.socket_timeout=20
#worker.template.socket_connect_timeout=5000
#worker.template.socket_keepalive=Trueworker.template.ping_mode=A
worker.cms.reference=worker.template
worker.cms.port=8089
worker.cms.host=localhost
我解决这个错误的方法即是:把httpd_vhost.conf配置文件的JkMount的指向修改成和workers.properties配置文件一致