----- Original Message -----
From: "tom_goring" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, June 26, 2008 12:09 PM
Subject: multiple instances and context roots
Hi,
I've posted this on the jboss forum but had no response... it's really a
tomcat question.
jboss-4.2.2 (not sure of the tomcat version used)
I have several jboss installs running behind apache using mod_jk (dev,
test,
production, etc)
I can't use virtual hosts as all my instances require SSL and this is only
set up for 1 domain. Each instance runs on it's own ports.
I want a simple way to tell each jboss/tomcat instance to use a reliative
context.
E.g.
https://www.myserver.com/dev/MYAPP/hello.jsp
https://www.myserver.com/test/MYAPP/hello.jsp
I.e. I want to know where I can set dev/test, etc.
I don't really want to change the application.xml (context-root) for each
EAR file when installed (as that would require rebuilding the EAR
dependent
on the instance).
Ideas ?
Tom, I have no knowledge of Jboss... we dont use EJB at all, so I'm just
going to tell you what TC does to get sub contexts, and then you on your
own.
Say you want /dev/MyApp
The context file name in conf/host becomes
dev#MyApp.xml
The path in the context file becomes
path="/dev/MyApp"/>
And in webapps folder it becomes
/dev/The UnPacked Webapp
Deployment is not possible by dropping a war into tomcat... the war must not
be there, else TC will auto deploy and mess up your config.
Then I "guess" JkMount /dev/* theWorker..... may work...
And hopefully nothing in those apps is hardcoded... like URI's in jsp pages
etc.
And EJB is still happy...
Some really creative guy Alex Mestiashvili showed us a way (unrelated) to
map different IP's to different webapps a while back using a reverse proxy
and some other incredible rewrite stuff that Apache can do... JK works on
relative uri's, but I think its worth a bash asking the Apached guys if one
cant map
https://www.myserver.com/dev/MYAPP/hello.jsp
https://www.myserver.com/test/MYAPP/hello.jsp
to
https://www.myserver.com:8080/MYAPP/hello.jsp
https://www.myserver.com:8081/MYAPP/hello.jsp
etc...
Or something even more creative... ie try get apache to present TC/JBoss
with something it likes...
Maybe mod proxy has a few tricks that jk does not... worth getting into the
Httpd mailing list and asking, I think.
JK is terrific at load balancing, but you just trying to use it as a kind of
gateway... Apached is probably good at that.
Good luck.... sorry cant be more helpful
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]