tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Schwoerer <j.schwoe...@web.de>
Subject Re: Not Virual Hosts: Re: Can multiple URLs with a single IP address be mapped to discrete Applications in Tomcat 4.0?
Date Mon, 04 Feb 2002 11:28:38 GMT
I think you have to create two virtual hosts (one one www.aa.com and
one for www.bb.com). these are mapped to two different directories eg.
webapps/aa and webapps/bb.
in server.xml it should look like this:
<Host name="www.aa.com" debug="0" appBase="webapps/aa">
...
</Host>

<Host name="www.bb.com" debug="0" appBase="webapps/bb">
...
</Host>

i hope thats what you are looking for! if not please explain your
prob. again. maybe i misunderstood it.

jochen

Hello Micael,

Sunday, February 03, 2002, 5:11:28 PM, you wrote:

MPOmG> Hi, Jochen, thanks for the help.  But, I think, unless I misunderstand, 
MPOmG> that virtual hosts are not the solution.  Virtual hosts are defined by the 
MPOmG> Host element in server.xml.  Hosts are parents to one or more web 
MPOmG> applications, each represented by a Context component.  I can see nothing 
MPOmG> in a virual host that allows us to introduce the variable of a URL, e.g. 
MPOmG> www.aa.com versus www.bb.com, incoming to the site.  However, since I am 
MPOmG> the one having the problem, maybe I misunderstand.  Could you expand on how 
MPOmG> you think this solves the problem of mapping, e.g., the url www.aa.com to 
MPOmG> the application webapps/aa and the url www.bb.com to the application 
MPOmG> webapps/bb?  Thanks.

MPOmG> At 12:01 PM 2/3/02 +0100, you wrote:
>>hi,
>>
>>i think you are looking for something called virtual hosts. tomcat can
>>do virtual hosts. look in the tomcat documentation after the host
>>directive.
>>
>>jochen
>>
>>Hello Micael,
>>
>>Sunday, February 03, 2002, 7:46:13 AM, you wrote:
>>
>>MPOmG> Clear question: No answers????
>>
>>MPOmG> The subject, supra, asks the question.  If you have a number of URLs
>>MPOmG> pointed to a single IP address, can you map the URLs somehow to 
>>discrete
>>MPOmG> web applications in Tomcat 4.0?
>>
>>MPOmG> I have read everything I know to read and cannot get the answer to 
>>this.  I
>>MPOmG> know I could do it with JBoss and Tomcat 3.2.4 and the context
>>MPOmG> manager.  But, I don't see that in Tomcat 4.0.  What's up?
>>
>>MPOmG> Sure is hard to get a response to this question.  Have no idea
>>MPOmG> what.  Please don't tell me the stuff that is simple and covered 
>>like how
>>MPOmG> to set up directories, etc.  I know how to handle aliases, how to 
>>handle
>>MPOmG> multiple IP addresses on the same machine, etc.  My question is
>>MPOmG> specific.  How can I get, e.g. www.aaaaa.com and www.bbbbb.com when 
>>they
>>MPOmG> are pointed to a given IP address, 209.43.251.66 (for example), to 
>>map to
>>MPOmG> webapps/aaaaa and webapps/bbbbb?  Or, is this not now possible?
>>
>>MPOmG> Some people have suggested that, since I don't know the answer to 
>>this, I
>>MPOmG> need to essentially take the classes I teach for fun.  Lord.  If 
>>only they
>>MPOmG> could answer the question instead of loading me with pompous 
>>self-righteous
>>MPOmG> drivel.  I do thank those who have tried.  I don't know where to 
>>look at
>>MPOmG> this point.  I may just write the classes to do it.
>>
>>MPOmG> Micael
>>
>>
>>
>>MPOmG> --
>>MPOmG> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>MPOmG> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>>MPOmG> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>>
>>
>>
>>
>>jochen schwoerer
>>
>>
>>--
>>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>



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




jochen schwoerer


--
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