You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Torsten Schlabach <TS...@gmx.net> on 2003/08/14 16:28:46 UTC

Apache-Tomcat jk2 Virtual Host to Webapp

Dear list,

I am sure it is easy, but I cannot find it anywhere.

We have one Tomcat serving several webapps, such as

/webapp1/welcome.jsp
/webapp2/welcome.jsp
...

In Apache httpd we have setup several virtual hosts, such as

http://www.host1.com/
http://www.host2.com/index.jsp

How is it possible to make sure that on http://www.host1.com/welcme-jsp we
will see webapp1 and on http://www.host2.com/welcome.jsp we will see webapp2.
(In other words: Where would I inject the webapp directory? Or does this
require different Coyote connectors? Or anything else on the Tomcat end?)

The mod_jk2 Virtual Hosting HOWTO does not talk about this at all ...

Torsten


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat jk2 Virtual Host to Webapp

Posted by John Turner <to...@johnturner.com>.
in server.xml:

<Host name="host1" appBase="host1">
   <Context path="" docBase="webapp1">
   </Context>
</Host>

<Host name="host2" appBase="host2">
   <Context path="" docBase="webapp2">
   </Context>
</Host>

Torsten Schlabach wrote:

> Dear list,
> 
> I am sure it is easy, but I cannot find it anywhere.
> 
> We have one Tomcat serving several webapps, such as
> 
> /webapp1/welcome.jsp
> /webapp2/welcome.jsp
> ...
> 
> In Apache httpd we have setup several virtual hosts, such as
> 
> http://www.host1.com/
> http://www.host2.com/index.jsp
> 
> How is it possible to make sure that on http://www.host1.com/welcme-jsp we
> will see webapp1 and on http://www.host2.com/welcome.jsp we will see webapp2.
> (In other words: Where would I inject the webapp directory? Or does this
> require different Coyote connectors? Or anything else on the Tomcat end?)
> 
> The mod_jk2 Virtual Hosting HOWTO does not talk about this at all ...
> 
> Torsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



Re: Apache-Tomcat jk2 Virtual Host to Webapp

Posted by John Turner <to...@johnturner.com>.
in server.xml:

<Host name="host1" appBase="host1">
   <Context path="" docBase="webapp1">
   </Context>
</Host>

<Host name="host2" appBase="host2">
   <Context path="" docBase="webapp2">
   </Context>
</Host>

Torsten Schlabach wrote:

> Dear list,
> 
> I am sure it is easy, but I cannot find it anywhere.
> 
> We have one Tomcat serving several webapps, such as
> 
> /webapp1/welcome.jsp
> /webapp2/welcome.jsp
> ...
> 
> In Apache httpd we have setup several virtual hosts, such as
> 
> http://www.host1.com/
> http://www.host2.com/index.jsp
> 
> How is it possible to make sure that on http://www.host1.com/welcme-jsp we
> will see webapp1 and on http://www.host2.com/welcome.jsp we will see webapp2.
> (In other words: Where would I inject the webapp directory? Or does this
> require different Coyote connectors? Or anything else on the Tomcat end?)
> 
> The mod_jk2 Virtual Hosting HOWTO does not talk about this at all ...
> 
> Torsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org