I have a machine running virtual IP addresses and have set Orion up to run
on each one as follows:

server.xml
     <application name="foo" path="../applications/foo" />
     <web-site path="./web-site1.xml" />
     <web-site path="./web-site2.xml" />
web-site1.xml
     <web-site host="192.7.12.35" port="80" display-name="Default Orion
WebSite">
     <default-web-app application="foo" name="foo-web" />
     <access-log path="/logs/access_log1"
web-site2.xml
     <web-site host="192.7.12.36" port="80" display-name="Default Orion
WebSite">
     <default-web-app application="foo" name="foo-web" />
     <access-log path="/logs/access_log2"

When I connect to 192.7.12.35, it gets logged under access_log1 and
192.7.12.36 under access_log2 -
so all seems to be fine there.

What I would like to do now is "redirect"
192.7.12.35 to /web-site1/   and
192.7.12.36 to /web-site2/ (both directories fall under
../applications/foo/foo-web/web-site[12])

but when I add a "web-app ... root="/web-site1" " entry into the
web-site1.xml file, the server ignores it.
My default index page has links to both web-site1/index.htm and
web-site2/index.htm , so all the
content is available under the applications/foo directory. The objective is
 to run two different sites
off this (i.e. www.foo.uk will go to 192.7.12.35/web-site1/ and www.foo.us
to 192.7.12.36/web-site2/)

Should I also have virtual host entries?

Thanks

Warren



Reply via email to