1.Apache下载地址
http://httpd.apache.org/download.cgi
2.Apache Tomcat Connector
http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.23/mod_jk-1.2.23-apache-2.2.x-linux-x86_64.so
3.整合
将上面下载到的Apache Tomcat Connector文件mod_jk-apache-2.2.4.so拷贝到%APACHE_HOME%/ modules目录下
在%APACHE_HOME%/conf目录下建立mod_jk的配置文件workers.properties,并在文件中建立如下内容:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=127.0.0.1
worker.ajp13w.port=8009
打开%APACHE_HOME%/conf下的httpd.conf(在此之前备份此文件),在LoadModule命令配置的末尾追加:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkMount /*.jsp ajp13w
JkMount /*.jspx ajp13w
JkMount /servlet/* ajp13w
JkMount /*.servlet ajp13w
在Directory命令配置的末尾追加:
<Directory "%TOMCAT_HOME%/webapps/jsp-examples">
Order allow,deny
Allow from all
</Directory>
在IfModule alias_module命令配置中间添加:
Alias /jsp-examples "%TOMCAT_HOME%/webapps/jsp-examples"
保存文件,启动Tomcat、Apache,在浏览器中输入:
http://hostAddress/jsp-examples如果能看到Tomcat自带的默认jsp-examples的界面说明整合成功
http://httpd.apache.org/download.cgi
2.Apache Tomcat Connector
http://mirror.cc.columbia.edu/pub/software/apache/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.23/mod_jk-1.2.23-apache-2.2.x-linux-x86_64.so
3.整合
将上面下载到的Apache Tomcat Connector文件mod_jk-apache-2.2.4.so拷贝到%APACHE_HOME%/ modules目录下
在%APACHE_HOME%/conf目录下建立mod_jk的配置文件workers.properties,并在文件中建立如下内容:
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=127.0.0.1
worker.ajp13w.port=8009
打开%APACHE_HOME%/conf下的httpd.conf(在此之前备份此文件),在LoadModule命令配置的末尾追加:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkMount /*.jsp ajp13w
JkMount /*.jspx ajp13w
JkMount /servlet/* ajp13w
JkMount /*.servlet ajp13w
在Directory命令配置的末尾追加:
<Directory "%TOMCAT_HOME%/webapps/jsp-examples">
Order allow,deny
Allow from all
</Directory>
在IfModule alias_module命令配置中间添加:
Alias /jsp-examples "%TOMCAT_HOME%/webapps/jsp-examples"
保存文件,启动Tomcat、Apache,在浏览器中输入:
http://hostAddress/jsp-examples如果能看到Tomcat自带的默认jsp-examples的界面说明整合成功