Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2006, 02:38 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

http://localhost/jsp-examples/

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?

Thanks

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
    </Directory>


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

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

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

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


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

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


</IfModule>


workers.properties looks like this:

workers.tomcat_home=C:/www/tomcat5
workers.java_home=C:/Program Files/Java/jdk1.5.0_07
ps=
# Define worker 'example'
worker.list=example

# Set properties for worker 'example' (ajp13)
worker.example.type=ajp13
worker.example.host=localhost
worker.example.port=8009

worker.example.cachesize=10
worker.example.cache_timeout=600
worker.example.socket_keepalive=1
worker.example.reclycle_timeout=300
Reply With Quote
  #2 (permalink)  
Old July 3rd, 2008, 06:03 PM
Registered User
 
Join Date: Jul 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Thanks
Rob


Reply With Quote
Reply


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 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



All times are GMT -4. The time now is 02:07 AM.


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