Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2006, 02:37 PM
Registered User
Join Date: Jun 2006
Location: Brighton, East Sussex, United Kingdom.
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)

  #2 (permalink)  
Old October 10th, 2007, 06:40 AM
Registered User
Join Date: Oct 2007
Location: Hyderabad, AP, India.
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 03:07 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.