服务器搭建--Apache+Tomcat整合

服务器搭建--Apache+Tomcat整合


前面的文章已经说过了 Aapche和Tomcat的安装


这里记录下 两者的连接


mod_jk下载地址:tomcat.apache.org/download-connectors.cgi

参考地址:http://blog.csdn.net/paulluo0739/article/details/6575619


按照参考 有点小问题 我这里再补充:

将下载的httpd-jk.con,workers.propertiesf移动到/usr/apache/conf/extra,/usr/apache/conf

在httpd.conf中添加 Include conf/extra/httpd-jk.conf

Include conf/extra/httpd-vhosts.conf前面的#去掉

httpd-vhosts中添加


	ServerAdmin ***
	ServerName ***
	JkMount /* tomcat1
	CustomLog "logs/apache_access.log" combined 
	CustomLog "logs/apache_referer.log" referer 
	CustomLog "logs/apache_agent.log" agent 
	ErrorLog  "logs/apache_error.log"

workers.properties修改:

worker.list=tomcat1  
worker.tomcat1.port=8009  
worker.tomcat1.host=localhost  
worker.tomcat1.type=ajp13  
   


tomcat 中server.xml中修改:

 


重启tomcat apache 即可


你可能感兴趣的:(服务器搭建)