I apologize BIG TIME big time for the double posting of this, but I haven't gotten an answer, and it's been a couple of days...I know, I am impatient. Sorry.
I only have one request: if this hasn't been answered because everyone thinks I'm an idiot, please reply to me offline and tell me RTFM. I seriously cannot find the information that I need to make this work, and I have RT'ed every FM out there. I have been using TC for a long time, and this is honestly the first time i've seen this come up. I can totally hack a workaround for myself, but my current ideas are all pretty ugly and as this application is already deployed, I am loathe to destabilize it too much. if i do not get replies I will assume that what I am asking for is not common or not possible within the framework of my current knowledge. Thanks, Phillip P.S. My precise tomcat version is 3.2.4, my environment is Redhat 7.2. On 4/22/02 12:19 PM, "Phillip Morelock" <[EMAIL PROTECTED]> wrote: > I am using virtual hosting on Tomcat 3.x standalone but I can't seem to make > my scenario work: > > www.xxx.com/memphis > and > www.xxx.net/memphis > > Basically the only difference between the two (they're literally the same > webapp) is that in the web.xml file, I provide a different database name for > my load-on-startup servlet to create a pool of connections to (not IP > address -- it's the same database server, just a different DB name). My > server.xml looks like this: > > <Host name="www.XXX.com"> > <Context path="/memphis" > docBase="webapps/memphis" /> > <Context path="/" > docBase="webapps/ROOT" /> > </Host> > <Host name="www.XXX.net"> > <Context path="/memphis" > docBase="netwebapps/memphis" /> > <Context path="/" > docBase="netwebapps/ROOT" /> > </Host> > > So basically, I have two different folders -- the default "webapps" folder > and then one I created called "netwebapps." This works, tomcat doesn't > complain -- in fact, it even connects to the database twice during startup > (I have debug messages), so I *know* it runs my load-on-startup servlet > twice. So I know it knows I want to run two webapps. > > But here's the funny thing, when I go to www.xxx.net/memphis in my browser, > it returns a 404. .com still works like it always did, even before i set up > virtual hosting. What's up? Is it because maybe it's impossible to have > two webapps of the same context name on different "virtual hosts" from the > same container? > > Cheers and TIA > fillup > > > -- > 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]>
