This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure tomcat handle jsp files from apache DocumentRoot

Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I compiled/installed/configured both the apache and tomcat and mod_jk
it seams to work great BUT I didn�t found the way in the configuration
to redirect the jsp files that sitting in the defined apache documentRoot
now my config in the httpd.conf looks like this :

# Load mod_jk
LoadModule jk_module libexec/

# configure mod_jk
JkWorkersFile /tomcat/conf/
JkLogFile tomcat/logs/mod_jk.log
JkLogLevel debug

JkMount /*.jsp testWorker
JkMount /servlet/*.jsp testWorker

with this configuration the apache+tomcat serves html/php/whatever files that resides in the defined apache DocumentRoot
BUT all the jsp files handles only if its sites in the tomcat tomcat/webapps/ROOT dir

and I will like to configure it use the apache DocumentRoot both for jsp files and other files .
Mav Ricky
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Meir Yan

u have addded in apache /conf file to ur appliaction...........

# ------------------------
# Tomcat server
# ------------------------

my application is out tomcat and deployed independently
i have added mod_jk.conf in tomcat/conf

LoadModule jk_module modules/mod_jk.dll

<IfModule mod_jk.c>

JkWorkersFile C:/Tomcat4.1/conf/
JkLogFile logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13


i think it will help your cause a bit
if u still have some problem
plz ask again

Bear Bibeault
Author and ninkuma
Posts: 65273
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Ankur", you have previously been warned on one or more occasions regarding adjusting your display name to meet JavaRanch standards. This is not optional. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it prior to your next post.

Be aware that accounts with invalid display names are removed.

JavaRanch Sheriff
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic