Hello Dave,

Dave Ford wrote:

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

This 2nd one is correct, but you only need to give the host attribute if you
just want to listen to one of multiple IP:s on the server.

<web-site virtual-hosts="test.foo.com"> in one and <web-site
virtual-hosts="test2.foo.com"> in another is enough (but of course you also
want the other web-site to do something differently from the first, like have
other applications and content deployed)

Regards,
Karl Avedal


Reply via email to