Sorry.. didn't finish... (hit the damned button)

And my application context.xml files would read something like...


For webapp1 - a deployed .war file
<Context
          docBase = "/home/web/mywebapp1/webapps/mywebapp1"
          reloadable="true">
</Context>

For webapp2 - a .jsp structure - no .war
<Context
          docBase = "/home/web/mywebapp1/webapps"
          reloadable="true">
</Context>



No path element?

Maluhia mua (Safety first)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lessie Z. Mitch – 
SAFETY SYSTEMS HAWAII
BRANDY SIGNS
815 Waiakamilo Rd.
Honolulu, HI  96817
FX 808|842.1233
CL 808|306.9914 (24/7)
PH 808|847.4017 (8a - 5p HST)
www.safetysystemshawaii.com
www.brandysigns.com
"Read not to contradict and confute, nor to believe and take for granted,
nor to find talk and discourse, but to weigh and consider." ~ Harold Bloom

CONFIDENTIALITY NOTICE: 
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential as well as privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited by international law. If you are not the intended recipient,
please contact the sender by reply e-mail and destroy all copies of the
original message.


-----Original Message-----
From: Lessie Z. Mitch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 26, 2008 10:19 AM
To: 'Tomcat Users List'
Subject: RE: Virtual Hosts: path="/" without using ROOT folder?

> Use context.xml - approach #2 and configure both a docBase and a path.
Note the docBase *must* be outside of any host's appBase.

So I can have setup as such:

Server setup
/tomcat_home/conf/server.xml

<!-- virtual host mywebapp1 -->
      <Host 
          name="mydomain1.net"
          appBase="home/web/mywebapp1/webapps"
          unpackWARs="true" 
          autoDeploy="true">
      </Host>

<!-- virtual host mywebapp1 -->
      <Host 
          name="mydomain2.net"
          appBase="home/web/mywebapp2/webapps"
          unpackWARs="true" 
          autoDeploy="true">
      </Host>

Context file locations:
/tomcat_home/conf/Catalina/mywebapp1/mywebapp1.xml
/tomcat_home/conf/Catalina/mywebapp2/mywebapp2.xml


Webapps locations (totally different sites & domain names:
/home/web/mywebapp1/webapps/   (.war deployment)
/home/web/mywebapp2/webapps/   (.jsp deployment)


Maluhia mua (Safety first)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lessie Z. Mitch – 
SAFETY SYSTEMS HAWAII
BRANDY SIGNS
815 Waiakamilo Rd.
Honolulu, HI  96817
FX 808|842.1233
CL 808|306.9914 (24/7)
PH 808|847.4017 (8a - 5p HST)
www.safetysystemshawaii.com
www.brandysigns.com
"Read not to contradict and confute, nor to believe and take for granted,
nor to find talk and discourse, but to weigh and consider." ~ Harold Bloom

CONFIDENTIALITY NOTICE: 
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential as well as privileged
information. Any unauthorized review, use, disclosure or distribution is
prohibited by international law. If you are not the intended recipient,
please contact the sender by reply e-mail and destroy all copies of the
original message.


-----Original Message-----
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 26, 2008 8:51 AM
To: Tomcat Users List
Subject: Re: Virtual Hosts: path="/" without using ROOT folder?

ahnf wrote:
> My question is, is there any way other than making the application's root
directory be "ROOT" or deployed under ROOT/ in order to get it to respond to
"/"? I tried the "path" attribute but it says that it is only valid when the
<Context> is defined in server.xml and not in META-INFO/context.xml. 
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Use context.xml - approach #2 and configure both a docBase and a path. Note 
the docBase *must* be outside of any host's appBase.

> Secondly, I read the docs on how to get the "manager" application to show
up for each of my virtual hosts (copy manager.xml from Catalina/localhost/
and move it to Catalina/<myhost>/, 
> however when my virtual host boots up and I go to <myHost>/manager I get a
404. However when I got to localhost/manager the manager comes up however it
knows nothing about the apps under my virtual hosts?

Again, see context.xml -
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.1/1299 - Release Date: 2/26/2008
9:08 AM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.1/1299 - Release Date: 2/26/2008
9:08 AM
 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.1/1299 - Release Date: 2/26/2008
9:08 AM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.1/1299 - Release Date: 2/26/2008
9:08 AM
 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to