Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Meaning of LoadModule jk_module libexec/mod_jk.so in httpd.conf

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have seen the following set of statements in $APACHE_HOME/conf/httpd.conf file,

------------------------------------------------------------------------------
LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/apache1.3/conf/workers.properties
JkLogFile /usr/local/apache1.3/logs/mod_jk.log
JkLogLevel debug
----------------------------------------------------------------------------

I do not understand what is meant by these above lines and what functionality they implement in APACHE. I have seen mod_jk.so in the path $APACHE_HOME/libexec.

I hope, my question is clear.

Please, help in solving the doubt.

regards
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at the Tomcat mod_jk documentation at tomcat.apache.org.
Mod_jk is a module that allows Apache to treat Tomcat as a CGI handler so requests for resources such as Java servlets made to Apache can be processed by Tomcat.

It is normal to manually build mod_jk for the version of Apache you are using rather than getting a pre-compiled binary. mod_jk.so is the complied binary file you end up with. LoadModule tells Apache the name of the module and where to find it.

When Apache receives a request it needs an already running instance of Tomcat to handle it. Workers are those instances of Tomcat, they are configured in the workers.properties file.

The logging parts tell mod_jk where to write error messages and with how much detail.

Further on in the Apache configuration you should find some JkMount directives that tell Apache which content should be passed to which Tomcat workers for processing.

Hope that helps.
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is about fronting Tomcat with Apache http://blog.vinodsingh.com/2009/01/apache-in-front-of-tomcat-and-jboss.html
reply
    Bookmark Topic Watch Topic
  • New Topic