apache tomcat 整合

第一步: 在http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.6
             下载mod_jk_1.2.6_2.0.50.dll文件,将其改名为mod_jk.so后放到apache2/modules目录中。
            
    第二步: workers.properties:
   
workers.tomcat_home=D:\My_Work\Tomcat\apache-tomcat-6.0.14
workers.java_home=D:\Program Files\Java\jdk1.5.0_07
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

            
     第三步:用记事本打开apache/conf/httpd.conf文件末尾,添加下面一段:
    
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "D:\Program Files\Apache Software Foundation\Apache2.2\modules\workers.properties"
#ServerAdmin [email protected]   
#ServerName localhost
DirectoryIndex index.html index.htm index.jsp
JkMount /* ajp13   
JkAutoAlias "D:\My_Work\Tomcat\apache-tomcat-6.0.14\webapps"  
Options Indexes FollowSymLinks
#allow from all


      
            

     保存,停止apache服务,在启动,就可以将新配置应用了。

你可能感兴趣的:(apache,tomcat,应用服务器,jsp,servlet)