Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: moved out legacy data on Ubuntu 11 and lower.

...

  • /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.

Note

This has now been corrected in Ubuntu 12. You no longer need to manually create your own jk.conf file.

 

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.

...

  • /etc/apache2/mods-available/jk.conf

...

Code Block
languagexml
<IfModule mod_jk.c>

JkWorkersFile "/etc/libapache2-mod-jk/workers.properties"
JkLogFile "/var/log/apache2/mod_jk.log"

# Use debug mode if you have trouble
# JkLogLevel debug

JkLogLevel info

</IfModule>

...

Manually Installing mod_jk

...