What are the advantages and disadvantages of using mod_jk
and mod_proxy
for fronting a tomcat instance with apache?
I\'ve been using mod_jk
When using mod_jk, you are using the APJ protocol. When using mod_proxy you will use HTTP or HTTPS. And this is essentially what makes all the difference.
ProsThe Apache JServ Protocol (AJP) is a binary protocol that can proxy inbound requests from a web server through to an application server that sits behind the web server. AJP is a highly trusted protocol and should never be exposed to untrusted clients, which could use it to gain access to sensitive information or execute code on the application server.[1]
BenefitsHTTP functions as a request–response protocol in the client–server computing model. A web browser, for example, may be the client and an application running on a computer hosting a website may be the server. The client submits an HTTP request message to the server. The server, which provides resources such as HTML files and other content, or performs other functions on behalf of the client, returns a response message to the client. The response contains completion status information about the request and may also contain requested content in its message body.