Chris, to get an idea of how you can map with Apache in front of Tomcat,
look at this link.
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/aphowto.html
Its worth a read because often when the site gets bigger, you end up wanting
to load balance, or use Apache to serve images.... so may be useful.
Remember the ROOT idea (see other post) eats up space for other web apps.
ie if you call the servlet A.... then a Web app called A is no longer a
possibility.
If you own the server ROOT is ures, but if you hosting, they probably wont
give it to you.
have fun
----- Original Message -----
From: "Chris Hall" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, June 21, 2007 11:51 PM
Subject: Multiple Contexts from single WAR
Hi, I'm experiencing some issues with getting correct behaviour on
deploying
multiple Contexts based on a single WAR. I need to do this because whilst
my
application is common to multiple contexts, I need to control
RemoteAddress
access to some of them via the relevant context Valve.
I have defined multiple contexts in conf/catalina/localhost/*.xml each of
which use a common docBase and this appears to create each of the webapps
on
start-up.
However the servlet-mapping entries that are defined in the common
web-inf/web.xml do not appear to be applied in accessing the copied
context.
For example the url-pattern which redirects to a servlet does not take
effect on the copied context definition, whereas it does apply on the
webapp
that is named after the originating WAR.
I guess I could deploy multiple WARs each named differently, but that
seems
to defeat what the common docBase is trying to achieve?
Is this behaviour expected? All comments gratefully received.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]