Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
langhtml
sudo apt-get install libapache2-mod-jk

Running this command results in the following,

  • /usr/lib/apache2/modules/mod_jk.so (this will not always be the most current - you can see the current version by looking at the package info)
  • /etc/libapache2-mod-jk/workers.properties (create a generic workers.properties file for generic setup of Tomcat 6.x)
  • /etc/apache2/mods-available/jk.load (file which loads the mod_jk module)
  • /etc/apache2/mods-enabled/jk.load (symbolic link which starts the mod_jk module)

BUT it is not quite working yet. Continue reading.

Create jk.conf

The approach I take here is to make the mod_jk available at the global level to all Apache Virtual hosts. If we wanted things to be more granular you could instead put the contents of jk.conf in a specific virtual host.

...

There are much more configuration options. But this should be enough to get you started for a small to medium scale website.

Manually Installing mod_jk

I often have to do this on Solaris or alternative operating systems so the manual process of installing mod_jk is good to have handy

Warning

The manual process of installing mod_jk should be moved to this wiki.

Enable mod_jk

In Ubuntu it is very easy to enable a module,

...

Now you should be able to view the examples site without specifying port 8080, http://www.krypton.com/examples/

Manually Installing mod_jk

I often have to do this on Solaris or alternative operating systems so the manual process of installing mod_jk is good to have handy

Warning

The manual process of installing mod_jk should be moved to this wiki.

Resources

http://www.gustavomejia.com/blog/2008/03/02/1204455261015.html - seems to have decent instructions using ubuntu apt-get to set up mod_jk. Don't understand the java_home thing though.

...