LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2004, 07:04 AM   #1
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Some apache and Tomcat Help pls...


Hi,

I've set up a slack 9.1 box here at the uni where i work, i've configured apache 2, tomcat 4, and mod_jk. It's working ok, and i've added entries into httpd.conf that allow me to use the tomcat examples without using the :8080 on my url. This says to me that mod_jk is working fine. I've a few questions thought.

Here's what i added to httpd.conf, so ya'll can see what i'm whittering on about:

LoadModule jk_module modules/mod_jk.so

#Start The Tomcat config

JkWorkersFile /usr/local/jakarta-tomcat-4.1.30/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-4.1.30/logs/mod_jk.log
#JkLogLevel debug
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"

#Start the tomcat mappings

Alias /examples /usr/local/jakarta-tomcat-4.1.30/webapps/examples
JkMount /*.jsp worker1
JkMount /examples/jsp/* worker1
JkMount /examples/servlet/* worker1
JkMount /webdav/* worker1
JkMount /tomcat-docs/* worker1
JkMount /admin/* worker1
JkMount /manager/* worker1
JkMount /ade/*.jsp worker1
JkMount /hn305891/*.jsp worker1
JkMount /cp921406/*.jsp worker1
Alias /ade /usr/local/jakarta-tomcat-4.1.30/webapps/ROOT/ade
Alias /hn305891 /usr/local/jakarta-tomcat-4.1.30/webapps/ROOT/hn305891
Alias /cp921406 /usr/local/jakarta-tomcat-4.1.30/webapps/ROOT/cp921406
<Location "/examples/web-inf/">
AllowOverride None
</Location>

My question is this :

i've added 3 folders under the webapps/ROOT/ folder of tomcat, ade, hm305891, and cp921406. You can see where i've added alias's , they work great, it's the JkMount statements i'm after more info on. Take this one for example :

JkMount /ade/*.jsp worker1

Does this mean that any jsp file that is under ade or any subdir under ade will be passed through to tomcat. Could someone explain a little how JkMount works. I've stubled through it so far, with successfull results, but i'm confused. Is there a way that i could just say, any jsp file under ROOT no matter what subdir would be forwarded to tomcat?

I thought JkMount /*.jsp worker1 would do it, but it seems only to work in the ROOT folder and not in subdirs.

The reason i ask is in the coming months i'll be adding possibly hundreds of accounts for our students, and i don't want to have to add in a JkMount for every student dir i create. There has to be an easier way.


Cheers in advance,

Ade
 
Old 03-11-2004, 03:23 AM   #2
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Original Poster
Rep: Reputation: 30
I Can't beliieve it dropped to page 4.... Come on peeps...

~BUMP~
 
Old 03-30-2004, 06:59 PM   #3
Amplifity
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
Did you figure this out. Just wondering, I think I've seen before where you could put /* and it would effect everything under it.

I would also like to know what documentation or where you got documentation that helped you set up Apache and Tomcat. I can't get it to work. I'm running Fedora Core 1, with the latest Apache, and Tomcat 5. I think I'm close, I just don't know what I'm missing. I've even tried the developer edition of JRun 4 from Macromedia. I'm seeing some wierd things go on with files.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat + Apache Elguapo Linux - Software 1 04-05-2005 06:23 AM
Tomcat 5 with Apache twantrd Linux - Software 3 10-18-2004 10:53 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM
Tomcat + Apache gilbert_on_line Linux - Software 1 04-18-2001 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration