Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_jk Help

Status
Not open for further replies.

alexk2oo

Programmer
Jun 22, 2006
1
GB
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 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:/
<Directory "C:/ Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>


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

Alias /content "C:/
<Directory "C:/ 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:/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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top