If I understand well, you have to define DNS entry for each host, all
defined as the same IP address. When your browser uses http://host1 it
will be resolved as the unique IP you have on your server, but in the
http request the hostname will be written. This way Tomcat will direct
the request to the "host1" virtual host as defined in server.xml, and
therefore to the right appBase.


____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_____________________________________


-----Original Message-----
From: Andoni [mailto:[EMAIL PROTECTED]] 
Sent: marted� 10 dicembre 2002 14.16
To: Tomcat Users List
Subject: Re: URGENT : Multiple host in Tomcat


You want to use the same DNS name and just change the  port number to
bring up different web-sites?

http://www.mysite.com:1234  ==>  context 1

http://www.mysite.com:4321 ==> context 2

etc.??

I think you cannot do that using only tomcat.  You can do nearly
anything with Apache though so you may have to go that way and just
rewrite the URL into the tomcat one calling the context path.

Andoni.


----- Original Message -----
From: "Laxmikanth M.S." <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 1:05 PM
Subject: RE: URGENT : Multiple host in Tomcat


> ya all that u have mentioned is there
> so it means we should have DNS entry for all the virtualhost or can it

> be done with different port numbers as done in Apache
>
> Regards
> Laxmikanth M S
> Off*  : 91-80-6610330 extn 1256
> Res* : 91-80-5267150
> http://www.sonata-software.com
>
> > Coming together is the beginning, staying together is progress and
working
> > together is Success
> What lies behind us and what lies before us are tiny matters compared 
> to what lies within us  - Emerson
>
>
> > -----Original Message-----
> > From: Andoni [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 10, 2002 6:34 PM
> > To: Tomcat Users List
> > Subject: Re: URGENT : Multiple host in Tomcat
> >
> > Have you created a DNS entry pointing at your IP address for each 
> > name?
> >
> > Does your Server.xml file have a <Host></Host> container for each
virtual
> > host you want to create?
> >
> > Look into these things and write again if need be.
> >
> > Andoni.
> >
> >
> > ----- Original Message -----
> > From: "Laxmikanth M.S." <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 10, 2002 12:35 PM
> > Subject: URGENT : Multiple host in Tomcat
> >
> >
> > > Hi all,
> > > I am creating multiple host (virtual Host) in tomcat 4.1.12 Server

> > > .
> > Every
> > > host contains context as"/".
> > > for eg. host 1 is "testhost1"
> > > and host2 is "testhost2"
> > > how to access the site.....
> > > please let me know soon
> > > thanks in advance
> > > laxmiaknth
> > >
> > >
> > > ******************************************************************
> > > ***
> > > Disclaimer: The information in this e-mail and any attachments is
> > > confidential / privileged. It is intended solely for the addressee
or
> > > addressees. If you are not the addressee indicated in this
message,
you
> > may
> > > not copy or deliver this message to anyone. In such case, you 
> > > should
> > destroy
> > > this message and kindly notify the sender by reply email. Please
advise
> > > immediately if you or your employer does not consent to Internet 
> > > email
> > for
> > > messages of this kind.
> > > ******************************************************************
> > > ***
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> *********************************************************************
> Disclaimer: The information in this e-mail and any attachments is 
> confidential / privileged. It is intended solely for the addressee or 
> addressees. If you are not the addressee indicated in this message, 
> you
may
> not copy or deliver this message to anyone. In such case, you should
destroy
> this message and kindly notify the sender by reply email. Please 
> advise immediately if you or your employer does not consent to 
> Internet email for messages of this kind.
> *********************************************************************
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to