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" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Brandon Cruz"
<[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>