You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brian Olson <ic...@bolson.org> on 2007/05/30 21:52:18 UTC
Can Two Host-s share one Context?
I want to have one server serve a bunch of virtual hosts, and to have
their web apps available as both
www.mybigsharedserver.com/some_vhost_site/
www.some_vhost_site.com/
I'm able to make this happen by declaring two Host entries in server.xml
with overlapping appBase and setting the root context of the vhost in
there as well,
BUT
This causes two instances of the Context for the webapp. The webapp is
getting larger and I don't like the duplication of resources that go into
running it twice.
Is there a way to configure a Context to be shared by two Hosts?
If not by server.xml, would there be a reasonable way to code this up by
just adding the same Context Object to both Host Objects?
Brian Olson
http://bolson.org/
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Can Two Host-s share one Context?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Brian Olson [mailto:icic@bolson.org]
> Subject: Can Two Host-s share one Context?
> I'm able to make this happen by declaring two Host
> entries in server.xml with overlapping appBase
That sounds a bit scary unless you inhibit war unpacking. Even then I'd
be reluctant to do that.
> Is there a way to configure a Context to be shared by two Hosts?
Not that I'm aware of. How about using a filter on the
www.mybigsharedserver.com <Host> that redirects to the proper <Host>
name?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org