We got this working by replicating the tomcat directory structure on the
apache box.
the reason for this lies somewhere in the way MOD_DIR and AUTO_INDEXING 
work.  A good example of what i mean follows

for the below to work you would have to have a /test directory on you apache
server.
even if you did not have any data in it.  When mod_dir checks to see if a
directory 
exists it does not for some reason transverse accross the plugin but only
the 
local filesystem based upon your DOC_ROOT directory.

On you tomcat server you would create a directory called test inside the
ROOT 
directory of jakarta-tomcat /usr/local/jakarta-tomcat/webapps/ROOT/test
This is where you JSP's would go.

You will also need to modify you workers.properties file and put a copy of
it 
on the apache server.  the particular line that is important for this is the
host line.  It is set by default to be "localhost" change it to the machine
that
is your tomcat server.

<IfModule mod_jk.c>

JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile  logs/jk.log
JkLogLevel warn
JkMount /*.jsp ajpB12
JkMount /test/servlet/* ajpB12
JkMount /test/*.jsp ajpB12

Alias /test "/usr/local/jakarta-tomcat/webapps/test"
<Directory "/usr/local/jakarta-tomcat/webXpps/test">
    Options Indexes FollowSymLinks
</Directory>

Alias /test "/usr/local/jakarta-tomcat/webapps/ROOT/test"

<Directory "/usr/local/jakarta-tomcat/webXpps/ROOT">
    Options Indexes FollowSymLinks
</Directory>

</IfModule>


This is the only way we have found that allow mod_jk to work
correctly with tomcat and apache.  if some else on this list 
has gotten this to work, possibly a more correct way please
post it to the list.  If this is the correct way please let me know
i have not been able to find ANY documentation pertaining to 
the setup of mod_jk using remote workers.

Good luck with this,

Israel

-----Original Message-----
From: Y Toshiko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 10:46 PM
To: [EMAIL PROTECTED]
Subject: Apache and remote tomcat server


I've going through the archives 
and discovered many messages 
relating to this problem.

As in "mod_jk and remote tomcat server"
(25 Apr 2001), Jserv enables Apache to
access remote tomcat.

Is it possible to do the same thing with mod_jk?
Any advise or information is appreciated.

Toshiko







--------------------------------------------------------------------------------------------------------------------------------------------------
Note:  The information contained in this message may be privileged and confidential
and protected from disclosure.  If the reader of this message is not the intended 
recipient,
or an employee or agent responsible for delivering this message to the intended 
recipient,
you are hereby notified that any dissemination, distribution or copying of this 
communication
is strictly prohibited.  If you have received this communication in error, please 
notify us 
immediately by replying to the message and deleting it from your computer.  Thank you.
--------------------------------------------------------------------------------------------------------------------------------------------------

Reply via email to