|
mod_jk Apache Module
The mod_jk Apache Module is a bridge between the Apache Web Server and the Jakarta Tomcat Server. Web requests
over port 80 are handled by Apache and then Java Servlet and JSP requests are forwarded
along to the right place (Tomcat, for example) by the configuration directives included with the Include directive
below.
|
NOTE: The mod_jserv Apache Module is an older
bridge between Java and Apache. On FreeBSD VPS Accounts this used to incorporate all the heavy parsing of
JavaServer Pages as well. The mod_jserv module runs unmodified on Solaris and talks to the Jakarta Tomcat
Server if it is available, but is not as fast (and is no longer supported by the Java Apache group) as the
mod_jk module is. For those who are migrating a lot of FreeBSD JavaServer Pages to Solaris, this might be a
good solution until they can use the mod_jk module.
|
Installation
|
NOTE: mod_jk is only available for Solaris Virtual Private Servers
|
Connect to your Virtual Private Server via SSH and complete these steps:
Add the following lines to your web server configuration file (~/www/conf/httpd.conf) after the last
LoadModule directive:
LoadModule jk_module modules/mod_jk.so
Include /usr/local/jakarta/jakarta-tomcat/conf/mod_jk.conf-auto
Create a ~/www/libexec symlink, by executing these commands:
% cd ~/www
% ln -s modules libexec
Finally, run "restart_apache" to reload your configuration file.
% restart_apache
|