tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Single webapp multiple contexts
Date Tue, 09 Nov 2010 20:29:03 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark,

On 11/9/2010 12:49 PM, Mark Thomas wrote:
> On 09/11/2010 17:30, Rob Gregory wrote:
> 
>> I have tried what you suggest but the result is that each context
>> defined in CATALINA_BASE/conf/<enginename>/<hostname> get
>> deployed/expanded into webapps which results in much more disk space
>> usage.
> 
> Hmm. That isn't meant to happen. Please create a Bugzilla entry for that
> one and I'll get it fixed.

How about adding unpackWAR="false" to your <Context>?

Rob,
> I want a single webapp instance e.g. c:\tomcat\webapps\myapp which can
> listen for requests coming from http://localhost/A/index.htm and the
> same webapp to listen for requests coming from
> http://localhsot/B/index.htm, etc. 

Are you using any kind of load-balancing service in front of Tomcat? If
so, you could rewrite URLs on the front-end to point to the same
deployed context. What is the advantage of using multiple URLs to refer
to this webapp? Do you use the URL for some sort of customization?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzZrw8ACgkQ9CaO5/Lv0PAuuACfd0Ka15GiNHufZTYL1PTzWySM
lFYAoK0y37eDE66K/Z+2jFX5H8H3tKcL
=D115
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message