Re: Deploying a webapp under two different URIs

2005-10-05 Thread Paul Singleton

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
Aliascarshare2work.com/Alias
Aliascarshare2work.net/Alias
Aliaswww.carshare2work.co.uk/Alias
Aliaswww.carshare2work.com/Alias
Aliaswww.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]



Deploying a webapp under two different URIs (re-sent)

2005-09-23 Thread Carsten Guenther

Hi,

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) ?

Thanks,
Carsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Deploying a webapp under two different URIs

2005-09-22 Thread Carsten Guenther
Hi,

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) ?

Thanks,
Carsten


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying a webapp under two different URIs

2005-09-22 Thread Ritchie Gillam
Are you are using Tomcat 5.5.X?  If so it is not recommended to put any Context 
in the server.xml file but instead in the application's META-INF/context.xml 
file.   

One of the problems we had was by putting the Context tag in server.xml 
itself we couldn't redeploy an application without restarting Tomcat every time 
and of course in a production environment this is not desirable.



Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 09/22/05 3:14 pm 
Hi,

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) ?

Thanks,
Carsten


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Deploying a webapp under two different URIs

2005-09-22 Thread Carsten Guenther
We are using 5.0.28 and we are using context deployment files.

On Thu, 2005-09-22 at 15:23 -0300, Ritchie Gillam wrote:
 Are you are using Tomcat 5.5.X?  If so it is not recommended to put any 
 Context in the server.xml file but instead in the application's 
 META-INF/context.xml file.   
 
 One of the problems we had was by putting the Context tag in server.xml 
 itself we couldn't redeploy an application without restarting Tomcat every 
 time and of course in a production environment this is not desirable.
 
 
 
 Ritchie Gillam
 Programmer Analyst, Information Services, Halifax Regional Municipality
 Email: [EMAIL PROTECTED]
 Phone: (902) 490-6167
 Fax: (902) 490-6583
 
  [EMAIL PROTECTED] 09/22/05 3:14 pm 
 Hi,
 
 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) ?
 
 Thanks,
 Carsten
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]