apache+tomcat 报错 Internal Server Error

Apache的两个配置文件
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配置文件一致


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值