There are three main ways to connect Apache to Jetty:
1. Using Apache mod_proxy and a normal Jetty HTTP connector.
2. Using Apache mod_proxy_ajp and the Jetty AJP connector.
3. Using Apache mod_jk and the Jetty AJP connector.
jetty推荐的是第一种
Html代码 [url=][/url]
We recommend using the HTTP connectors for the following reasons:
* Jetty performs significantly better with HTTP.
* The AJP protocol is poorly documented and has many version irregularities.
If you must use AJP, the mod_proxy_ajp module is better than mod_jk. Previously, the load balancing capabilities of mod_jk meant that you had to use (tolerate) it, but with Apache 2.2, mod_proxy_balancer is available and works over HTTP and AJP connectors.