Apache + Tomcat 简单地试一试

版权声明:The beautiful thing about learning is nobody can take it away from you. https://blog.csdn.net/xiuye2015/article/details/79936327

Download  jk_module (Search and Get from Network)!

Apache conf/httpd.conf tail append : 

#load module
LoadModule jk_module modules/mod_jk.so
#load properties
JkWorkersFile conf/workers.properties

#another config method
#load properties
#JkMountFile conf/uriworkermap.properties


JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat " [%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat " %w %V %T "
#request to tomcat
JkMount /examples/* worker1
JkShmFile logs/jk.shm


<Location /jkmanager/>
	JkMount jkstatus
	#Order Allow,Deny
	#Deny form all
	#Allow from 127.0.0.1
	Require all denied
	Require ip 127.0.0.1
</Location>

or another way: Include your conf with the same content in httpd.conf.

workers.properties:

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

worker.list=jkstatus
worker.jkstatus.host=localhost
worker.jkstatus.type=status

uriworkermap.properties like:

/examples/*=balancer













阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页