Wrox Programmer Forums
BOOK: Professional Apache Tomcat
This is the forum to discuss the Wrox book Professional Apache Tomcat by Chanoch Wiggers, Ben Galbraith, Vivek Chopra, Sing Li, Debashish Bhattacharjee, Amit Bakore, Romin Irani, Sandip Bhattacharya, Chad Fowler; ISBN: 9780764543722
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional 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:37 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 October 10th, 2007, 06:40 AM
Registered User
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

 I am also facing same problem.
 If u know any information regarding this, please send to me also.
 My id:srinivasv_ambati@yahoo.com
 Its very urgent requirement. If I know any thing, i will send to u.

srinivas ambati

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mod_jk Help alexk2oo Apache Tomcat 1 July 3rd, 2008 06:03 PM
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.