使用mod_jk
和mod_proxy
使用apache前端tomcat实例的优点和缺点是什么?
我已经在生产中使用mod_jk多年了,但我听说它是面向tomcat的"旧方式".我应该考虑改变吗?会有什么好处吗?
存在这些模块的利弊比较 http://blog.jboss.org/
mod_proxy的
* Pros: o No need for a separate module compilation and maintenance. mod_proxy, mod_proxy_http, mod_proxy_ajp and mod_proxy_balancer comes as part of standard Apache 2.2+ distribution o Ability to use http https or AJP protocols, even within the same balancer. * Cons: o mod_proxy_ajp does not support large 8K+ packet sizes. o Basic load balancer o Does not support Domain model clustering
mod_jk的
* Pros: o Advanced load balancer o Advanced node failure detection o Support for large AJP packet sizes * Cons: o Need to build and maintain a separate module
如果你想留在Apache的土地,你也可以尝试更新的mod_proxy_ajp,它使用AJP协议与Tomcat通信而不是普通的旧HTTP,但它利用mod_proxy来完成工作.
也可以看看:
http://wiki.apache.org/tomcat/FAQ/Connectors
http://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache