实在搞不定了,   apache   +   tomcat

实在搞不定了,   apache   +   tomcat

tomcat5.5.12    
apache2.2.4
mod_jk-apache-2.2.4.so
试了快一天了
直接帖我的配置,   大家帮我看看
httpd.conf
LoadModule   jk_module   modules/mod_jk.so  
JkWorkersFile   "conf/workers.properties "
JkLogFile   "logs/mod_jk.log "  
JkLogLevel   info  
JkMount   /servlet/*   worker1  
JkMount   /*.jsp   worker1
#说一下,   httpd.conf我试了n次,   估计就是这个文件没搞清楚

workers.properties
workers.tomcat_home=D:\java\tomcat5512
workers.java_home=D:\java\jdk150_2
ps=\
workers.list=worker1
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=1


server.xml
<Context   path= " "  
                    docBase= "D:/Program   Files/Apache   Software   Foundation/Apache2.2/htdocs "  
                    debug= "0 "   reloadable= "true "   >   </Context>
<!--   查了些资料,   有的说配这,   有的说不配,   望有个明确的答案     -->
Apache2.2整合Tomcat已经不用那样了
在httpd.conf   最后加:

LoadModule   proxy_module   modules/mod_proxy.so
LoadModule   proxy_ajp_module   modules/mod_proxy_ajp.so

ProxyPass   /   ajp://127.0.0.1:8009/
ProxyPassReverse   /   ajp://127.0.0.1:8009/

这样就可以搞定