Wrox Programmer Forums
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 22nd, 2006, 02:38 PM
Registered User
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mod_jk Help

Hi there,

I have installed mod_jk and it works with tomcat fine. I can view pages located in the tomcat4 direc by going to


It all works fine. But my main application is running in the ROOT directory of Tomcat, how do I forward this so that when you goto http://localhost/ it goes straight there, and not to the Apache default page?


httpd.conf looks like this:

LoadModule jk_module modules/mod_jk.so

<IfModule mod_jk.c>

    JkWorkersFile conf/workers.properties
    JkLogFile logs/mod_jk.log
    JkLogLevel error
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
    JkRequestLogFormat "%w %V %T"

    Alias /jsp-examples "C:/www/tomcat5/webapps/jsp-examples/"

    <Directory "C:/www/tomcat5/webapps/jsp-examples/">
        Options Indexes +FollowSymLinks
        AllowOverride None
        Allow from all

    Alias /servlets-examples "C:/www/tomcat5/webapps/servlets-examples/"

    <Directory "C:/www/tomcat5/webapps/servlets-examples/">
        Options Indexes +FollowSymLinks
        AllowOverride None
        Allow from all

Alias /content "C:/www/tomcat5/webapps/content/"

    <Directory "C:/www/tomcat5/webapps/content/">
        Options Indexes +FollowSymLinks
        AllowOverride None
        Allow from all

    <Location /*/WEB-INF/*>
        AllowOverride None
        deny from all

    JkMount /jsp-examples/*.jsp example
    JkMount /servlets-examples/* example
    JkMount /content/*.jsp example


workers.properties looks like this:

workers.java_home=C:/Program Files/Java/jdk1.5.0_07
# Define worker 'example'

# Set properties for worker 'example' (ajp13)

Old July 3rd, 2008, 06:03 PM
Registered User
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Hi - I'm trying to link apache to tomcat and getting nowhere
The first thing I'd like to do is just load the mod_jk module in apache but apache wont start whenever I add the LoadModule line to httpd.conf. I've tried:

LoadModule jk_module modules/mod_jk.so
#LoadModule jk_module modules/mod_jk.dll
#LoadModule jk_module "C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_jk.dll"
#LoadModule jk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.dll"

I'm running on windows xp, the modules are all there but just cant get it to start no matter what combination I use

Any help appreciated


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mod_jk Help alexk2oo BOOK: Professional Apache Tomcat 1 October 10th, 2007 06:40 AM
RewriteRule / mod_jk / sessionid problem egod123 BOOK: Professional Apache Tomcat 1 December 13th, 2006 12:42 PM
mod_jk + apache + mod_rewrite fanch Apache Tomcat 0 December 5th, 2005 12:34 PM
tomcat 5: which mod_jk version is appropriate jwv1806 BOOK: Professional Apache Tomcat 0 October 7th, 2004 05:59 AM
RedHat 9, Apache, Tomcat, mod_jk pzh19z Apache Tomcat 0 January 2nd, 2004 12:17 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.