Hi Nagendra -
This won't work - two hosts means two hosts, so they have to have
different names (this is virtual hosting).
If what you want to do is set up two different Contexts (Context is a
webapp) under the same host, but you don't want to put the two contexts
as subfolders of the same directory, then you need to specify the
Context - either as a <Context> element under the <Host> (but this is an
old deprecated style) or as a "Context fragment" (a bit of xml with just
the Context you want. You need to name the Context fragment after what
you want the Context served at (e.g. for "/thisapp" call it
"thisapp.xml", for "/this/that/theotherapp" call it
"this#that#theotherapp.xml") and put it in the conf/Catalina/localhost/
directory (assuming you AREN'T running virtual hosting)
E.g. for your first app, something like:
<Context docBase="/opt/myweb/www/webapps/app1"/>
This is all described at
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html (though may
take a few reads through - I misunderstood this totally when I read it,
but got put right on this list recently (thanks btw!)).
Tim
Devireddy, Nagendra Reddy (STSD) wrote:
Hi I am using tomcat for running two applications at different locations
First application app1 is under /opt/myweb/www/webapps and second
application is under /opt/nagendra/www/webapps
I am wondering whether the following conf will work ..
I am very new to this so please help me here if some thing is wrong
<Host name="localhost" debug="0" appBase="/opt/myweb/www/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Host name="localhost" debug="0" appBase="/opt/nagendra/www/webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
I have not tried this .. Before trying I just want to confirm ..
Please reply ..
Thanks and Regards,
Nagendra Reddy. D
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]