tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dola Woolfe <dolac...@yahoo.com>
Subject Re: Help figuring out Virtual Hosts
Date Fri, 14 Oct 2005 01:10:57 GMT
Hi,

Getting back to this on a delay because:

I just can't figure it out!!!

This is probably because I'm dumb, but it's just too
complicated for me. Can someone please provide an
example that would illustrate how to do this?

All I want is for the user to be able to enter
"serverA" in his/her browser and be forwarded to
"http://server/appA/index.jsp" and the enter "serverB"
and be forwarded to "http://server/appB/index.jsp". I
keep hoping that this would be as simple as it was for
Apache, but apparently it is not.

I'm not proud of my ignorance, but I don't know what
is Engine vs. Container vs Context etc. It seems that
for a semi-involved JSP project one now needs to have
a JSP programmer and a Tomcat administrator. (This
didn't use to be the case.)

Like I mentioned, an example would be greatly
appreciated.

Thank you.

Dola


--- Jilles van Gurp <incoming@jillesvangurp.com>
wrote:

> You can use multiple hosttags in the server.xml,
> each with their own 
> context. As described here
>
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html
> 
> "One or more Host elements are nested inside an
> Engine element. Inside 
> the Host element, you can nest Context elements for
> the web applications 
> associated with this virtual host. Exactly one of
> the Hosts associated 
> with each Engine MUST have a name matching the
> defaultHost attribute of 
> that Engine."
> 
> You give each application its own host and it should
> work fine. You can 
> also use alias tags inside a host tag if you want an
> application to be 
> available for multiple hosts.
> 
> Jilles
> 
> 
> 
> Dola Woolfe wrote:
> > Hi,
> >
> > I've certainly RTFM'd and had thoroughly read
> >
> >
>
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Host%20Name%20Aliases
> >
> > but I just can't figure out how to get virtual
> servers
> > to work.
> >
> > Basically, assume that DNS is set up properly and
> that
> > ServerA.com ServerB.com and Server.com resolve to
> the
> > same IP. Now, I want ServerA.com to "go to"
> > Server.com/MyAppA/index.jsp and ServerB.com to "go
> to"
> > Server.com/MyAppB/index.jsp. This, in my mind is
> sort
> > of like how Apache lets you do it, where of course
> it
> > takes advantage of the convention of index.html
> being
> > the default destination.
> >
> > OK, how do I achieve this with Tomcat? Could
> anyone
> > please provide a specific example?
> >
> > Many thanks,
> >
> > Dola
> >
> >
> > 		
> > __________________________________ 
> > Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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
> 
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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


Mime
View raw message