Apache Tomcat 链接

1、在conf文件夹中新建workers.properties

 

内容如下:

workers.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 

#让mod_jk模块知道Tomcat
workers.java_home=C:\Program Files\Java\jdk1.5.0_03  #让mod_jk模块知道j2sdk
ps=\  #指定文件路径分割符
worker.list=worker1
worker.worker1.port=8009  #工作端口,若没占用则不用修改
worker.worker1.host=localhost  #Tomcat服务器的地址
worker.worker1.type=ajp13  #类型
worker.worker1.lbfactor=1  #负载平衡因数

 

 

2、

将mod_jk_2.0.46.dll    拷贝到modules目录下

 

3、

在httpd.conf中加入

 

LoadModule jk_module modules\mod_jk_2.0.46.dll
JkWorkersFile "conf\workers.properties"
JkLogFile "logs\mod_jk2.log"
JkLogLevel debug
JkMount /*.jsp worker1
JkMount /*.do worker1

 

4、解析一个试试

<VirtualHost 172.20.2.16:80>
    ServerAdmin [email protected]
    DocumentRoot "D:\huxiuliang\local_server\job"
    ServerName job.com
    ErrorLog logs/job.com-error_log
    CustomLog logs/job.com-access_log common
    JkMount /job/* worker1
</VirtualHost>

 

 

你可能感兴趣的:(apache,tomcat,C++,c,jsp)