Carsten Guenther wrote:
I want to deploy the same webapp under two different URIs. I created two
context descriptors like this:
<Context path="/a" docBase="/home/user/myapp" debug="0"
privileged="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="a." suffix=".txt"
timestamp="true"/>
</Context>
<Context path="/b" docBase="/home/user/myapp" debug="0"
privileged="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="b." suffix=".txt"
timestamp="true"/>
</Context>
Everything seems to work fine, I just want to make sure that this is the
right thing to do. Are there any unwanted consequences bu doing this? Or
is there even a better way for achieving this (without using Apache) ?
I think what you are doing is safe: the files at
docBase="/home/user/myapp"
are never written to (you could make them read-only)
and safely shareable.
But do you really want or need two web app instances
(with their own sessions, logging etc.) or do you
just want two aliases for one application?
With name-based virtual hosting you can deploy one
web app instance at many domain names, e.g.
<Host name="carshare2work.co.uk">
<Alias>carshare2work.com</Alias>
<Alias>carshare2work.net</Alias>
<Alias>www.carshare2work.co.uk</Alias>
<Alias>www.carshare2work.com</Alias>
<Alias>www.carshare2work.net</Alias>
but I don't know of any way to alias a Context.
Paul Singleton
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.10/119 - Release Date: 4/Oct/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]