The Adapter
For Apache to communicate with Tomcat, and forward requests as necessary, it needs some extra software—an “adapter”.
An adapter will be implemented as an Apache module.
- An Apache module is a piece of code that can be optionally linked in to (or left out of) the main server code.
- Non-standard, plug-in, modules will typically be shared-object libraries (DLLs under Windows).
- These live in a directory called /usr/local/apache/libexec.
Apache modules generally have names of the form mod_XXXX
There are two Tomcat adapter modules in common use: mod_jserv and mod_jk.