As far as I know what you're trying to accomplish is impossible.  A web
server binds to an IP addresses.  The domain names are just pointers to the
same IP address.  So in effect your're trying to run 3 webserver on the same
exact IP.  You could bind to different ports, but then your URLs would be
non-standard.
To do this correctly you'll need a different IP for each domain.

One possibility that comes to mind, though I have no idea it will work, is
to analyze the URL request in your servlet or JSP and attempt to
inlcude/forward the appropriate content in your code, depending on what you
find.

Andre V



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dave Ford
Sent: Wednesday, September 27, 2000 1:33 PM
To: Orion-Interest
Subject: One IP - 3 Sites - 3 Domain Names


I have one physical machine with one IP address. This one ip address is
associated with three domain names. Each domain name should pull up a
different web-site.


I currently have 3 web-sites defined in server.xml:

<web-site path="c:\@web\@OrionConfig\web-site-1.xml" />
 <web-site path="c:\@web\@OrionConfig\web-site-2.xml" />
<web-site path="c:\@web\@OrionConfig\web-site-3.xml" />

I then have three web-site-x.xml files defined. It's not clear what the
value of the host and virtual-hosts attributes should be for each of these
three files. I have read the docs and the faq but still can't get it to
work.

I tried this:

In web-site-1.xml: <web-site host="www.domainName1.com" >
In web-site-2.xml: <web-site host="www.domainName2.com" >
In web-site-3.xml: <web-site host="www.domainName3.com" >


And this:

In web-site-1.xml: <web-site host="63.74.110.162"
virtual-hosts="www.domainName1.com">
In web-site-2.xml: <web-site host="63.74.110.162"
virtual-hosts="www.domainName2.com">
In web-site-3.xml: <web-site host="63.74.110.162"
virtual-hosts="www.domainName3.com">

It is not obvious to me, based on the docs, how to set this up. Any
suggestions?

Dave Ford


Reply via email to