问题描述
- apache2.4和tomcat7整合没有出现分发效果
-
我希望用apache httpd server 2.4转发.jsp结尾的文件请求给tomcat7处理,话说已经如下面配置好,但是没有任何效果,即请求了jsp文件,压根没转发给tomcat处理,apache按照文本内容处理了jsp里面内容显示在页面上。请各位大侠帮忙出招看看,如何检查,没有转发给tomcat处理到底问题在哪里。httpd.conf
... #enfo JK module Include conf/mod_jk.conf ...
mod_jk.conf
# Load mod_jk2 module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk2.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardURIProxy +ForwardKeySize +ForwardURICompat -ForwardDirectories +ForwardSSLCertChain # JkRequestLogFormat set the request format JkRequestLogFormat "%w %V %T" # Send JSPs for context / to worker named loadBalancer JkMount /*.jsp ajp13
workers.property
worker.list = ajp13 worker.ajp13.type=ajp13 worker.ajp13.host=localhost worker.ajp13.port=8009
现在问题
解决方案
apache中是否添加 worker文件 如果没有 apache怎么实现任务分发???
解决方案二:
您是说‘workers.properties’这个文件么?在mod_jk.conf文件里面引用了
解决方案三:
在conf目录下面也有worker.properties文件
时间: 2024-11-10 23:39:24