File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes How to configure tomcat handle jsp files from apache DocumentRoot Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to configure tomcat handle jsp files from apache DocumentRoot" Watch "How to configure tomcat handle jsp files from apache DocumentRoot" New topic
Author

How to configure tomcat handle jsp files from apache DocumentRoot

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello
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/mod_jk.so

# configure mod_jk
JkWorkersFile /tomcat/conf/workers.properties
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

Joined: May 19, 2004
Posts: 76
hi Meir Yan

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

---------------------------------------------------
worker.list=worker1
# ------------------------
# Tomcat server
# ------------------------
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8090
-------------------------------------------------------




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/workers.properties
JkLogFile logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13

</IfModule>
------------------------------------------------------------


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



regards
Ankur
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

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

bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure tomcat handle jsp files from apache DocumentRoot