Here's some more information based on what I've found.
THE SETUP (in $ORION_HOME/config, on host "orionhost")
============================================
1. I have a web-site.xml file for each of the two sites that I want to run
under Orion (cs2k-web-site.xml and twsm-web-site.xml). Each file contains a
line like this (sub "cs2k" in for "twsm" for cs2k-web-site.xml):
<default-web-app application="twsm" name="twsm-web" shared="true"
root="/twsm" />
2. I have added the following lines to the end of server.xml:
<application name="twsm" path="../applications/twsm/" />
<web-site path="./twsm-web-site.xml" />
<application name="cs2k" path="../applications/cs2k/" />
<web-site path="./cs2k-web-site.xml" />
3. I have added the following lines to application.xml, under the default
web-module tag:
<web-module id="cs2k" path="../applications/cs2k" />
<web-module id="twsm" path="../applications/twsm" />
4. All other files remain unmodified, and the default-web-site.xml has the
root set to "/".
Now, the application that comes up when entering a URL of http://orionhost/
is the first app to be defined in server.xml. I have verified this by
switching the declarations, and the other site comes up as the default. I
do not know how to get the browser to display the other site, as
http://orionhost/cs2k and http://orionhost/twsm both yield 404
errors. Also, since I have defined the default website with a root of "/",
shouldn't http://orionhost/ output the default web page, rather than one of
my webapps? Currently, the same host:port will be serving both
websites. They may get differing virtual domains in the future.
So, can anyone tell me how I can view both websites on the same
server? Can anyone see what I'm missing here?
>At 07:12 PM 11/09/2000 -0600, you wrote:
>>Locations of web sites has nothing to do with context roots.
>>
>>In your web-site.xml file, in the <web-application> element, set the path or
>>root (can't remember which) to /twsm and it should work.
>>
>>-mike
>>
>> > -----Original Message-----
>> > From: [EMAIL PROTECTED]
>> > [mailto:[EMAIL PROTECTED]]On Behalf Of Drew Kidder
>> > Sent: Friday, November 10, 2000 8:58 AM
>> > To: Orion-Interest
>> > Subject: Multiple websites/virtual domains on one server not found
>> >
>> >
>> > I've been perusing the back emails from the list regarding
>> > virtual domains
>> > and multiple sites on one host. I have the following setup,
>> > running Orion
>> > 1.3.8:
>> >
>> > 1. I have set up one site under $ORION_HOME/applications/cs2k, and the
>> > other under $ORION_HOME/applications/twsm.
>> > 2. In $ORION_HOME/config, I have created a cs2k-web-site.xml and
>> > twsm-web-site.xml. In the default-web-site.xml I have added all the
>> > requisite information as per the docs, and per the emails which I
>> > have read
>> > in the archive.
>> >
>> > Earlier, I was running the twsm site as the only site under this
>> > installation. I also had it as the default app (meaning that
>> > http://orionhost/ would pull up the app). Now that I have two
>> > apps running
>> > under orion, I'm not sure how to call them. Going to http://orionhost/
>> > still gives me the twsm site, but http://orionhost/twsm does not give me
>> > the twsm site, and http://orionhost/cs2k does not give me the cs2k site.
>> >
>> > What should the URL be to access each of these sites? In the respective
>> > application.xml files, I have added the <context-root> directive to the
>> > <web> module definition. For example, the twsm looks like
>> > this: <context-root>/twsm</context-root>. Shouldn't that force
>> > it to look
>> > for http://orionhost/<context-root> ?
>> >
>> > Any help would be appreciated.
>> >
>> > ------
>> > Andrew Kidder
>> > L3 SW/Support Engineer, IBU
>> > Tivoli Systems
>> >
>> > 512-436-4544
>> > [EMAIL PROTECTED]
>> > http://www.tivoli.com
>> >
>> >
>> >
>> >
------
Andrew Kidder
L3 SW/Support Engineer, IBU
Tivoli Systems
512-436-4544
[EMAIL PROTECTED]
http://www.tivoli.com