Thread: Mod_jk Help
View Single Post
  #1 (permalink)  
Old June 22nd, 2006, 02:37 PM
alexk2oo alexk2oo is offline
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