tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joaquín Sánchez Jiménez <qu...@fi2net.com>
Subject Re: Can I have all virtual hosts share one context on tomcat 3.2.4?
Date Tue, 15 Jan 2002 20:05:10 GMT
Hi all:

I am working with 3.2.3 and Apache 1.3.20 and I have done this.

Suppose two virtual host called "A.com" and "B.com" and one context called
"theContext".

You have httpd.conf. Set two virtual, one for A.com and other for B.com.

<IfDefine HAVE_JK>
  Include <APACHE_CONF>/mod_jk.conf
  NameVirtualHost <IP_ADDRESS>
  <VirtualHost IP_ADDRESS>
    ServerName A.com
    Include <APACHE_CONF>/virtual.A.jk
  </VirtualHost>
  <VirtualHost IP_ADDRESS>
    ServerName B.com
    Include <APACHE_CONF>/virtual.B.jk
  </VirtualHost>
</IfDefine>

I have this JK files as links to TOMCAT_CONF JK files with the same name. If
Windows not necessary.

For example, virtual.A.jk is in /usr/local/tomcat/conf in my machine. Then I
have in /etc/httpd/conf a link to this file via "ln - ......".
This is virtual.B.jk file:

<IfModule mod_jk.c>
        JkMount /*.jsp ajp12
        JkMount /servlet/* ajp12
</IfModule>
<Alias ...

<Directory ...


And finally server.xml:

<Host name="A.com">
    <Context path="/theContext" docBase="<PATH_TO_THE_CONTEXT>"
crossContext="false" debug="0" reloadable="true"/>
</Host>
<Host name="B.com">
    <Context path="/theContext" docBase="<PATH_TO_THE_CONTEXT>"
crossContext="false" debug="0" reloadable="true"/>
</Host>

Hope this help.

Bye.

J.

----- Original Message -----
From: "Renato" <webmaster@cienciapura.com.br>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>; "Brandon Cruz"
<bcruz@norvax.com>
Sent: Tuesday, January 15, 2002 4:52 PM
Subject: Re: Can I have all virtual hosts share one context on tomcat 3.2.4?


> With Tomcat 3.3 you can use the tag <Alias name="..."> under <Host ..>
and
> before <Context...>
>
> I think Tomcat 3.2.x doesn't support this.
>
> Renato - Brazil.
>
> On Tue, 15 Jan 2002 12:10:48 -0600, "Brandon Cruz" <bcruz@norvax.com>
> escreveu :
>
> > Is it possible with tomcat 3.2.4 to have all virtual hosts share one
> > context.  I want them to all share one web application.  Is this
possible?
> >
> > Brandon
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
> >
> >
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message