Hi everybody,
<usual list-newbie disclaimer>
I have searched the archives to no avail for this particular answer...i
think my problem may or may not be subtly unique from others' problems.
I have been using tomcat 3.x for a long time but have never encountered this
self-inflicted problem. If I am wrong and have wasted everyone's bandwidth,
I apologize in advance.
</usual list-newbie disclaimer>
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]>