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 Virtual Private Servers 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.


Do the following, according to your Virtual Private Server O/S.

  • FreeBSD
    mod_jk is unavailable. Try mod_jserv (FreeBSD only).

  • Solaris
    Connect to your Virtual Private Server via Telnet or SSH and complete these steps:

    1. Add the following line to your web server configuration file (~/www/conf/httpd.conf) after the last LoadModule directive:

      Include /usr/local/jakarta/jakarta-tomcat/conf/mod_jk.conf-auto
    2. Create a ~/www/libexec symlink, by executing these commands:

      % cd ~/www
      % ln -s modules libexec
    3. Restart the Web Server.

  • If you don't know the Virtual Private Server O/S, try the following:

Please note: the information on this page applies to ITS web hosting plans. It may or may not apply to other environments. If you are looking for a feature described here, or better support from your hosting provider, please consider hosting your site with ITS!

1555 N Naperville/Wheaton Road, Suite 107
Naperville, IL 60563
phone 630.420.2550
fax 630.420.2771