fyi
I apologize in advance if this is obvious to everyone but me, or if it
is covered in the docs and I haven't yet found it. Thanks in advance
for your help. Also, if any of you are doing something like this,
please drop some config examples in your replies. Now here's my
dilemma.
Is there any way to do this without running different appservers under
different ports, or if I do run multiple app servers, can they share a
common WebWare directory tree (except for the AppServer itself? (note in
the examples below, .mojo is a local internal domain used for testing,
and homey and orvill are some local virtual hostnames used for same):
on one host, multiple vhosts
http://www.homey.mojo
http://www.orvill.mojo
Set the context for homey such that
http://www.homey.mojo/WKhomey/
returns different results than
http://www.orvill.mojo/WKorvill/
Presently, both return the default context unless I reference a sub-sub
directory in the url as described below.
What works is this:
http://www.homey.mojo/WKhomey/WKhomey
returns WKhomey context
http://www.orvill.mojo/WKorvill/WKorvill
returns WKorvill context
Fortunately
http://www.homey.mojo/WKorvill fails (this is good) and
http://www.orvill.mojo/Wkhomey fails (ditto)
Unfortuanately
http://www.homey.mojo/WKhomey/WKorvill will return orvill's WK context and
http://www.orvill.mojo/WKorvill/WKhomey will return homey's WK context.
I'm trying to resolve two issues, preferably without running multiple
WebWare application servers:
First, can I protect each of the two contexts so they're not visible
from the other virtual host;
and
Second, can I set the default context for a virtual host without
making it a sub-sub directory url (as described above)?
Relevant config info (apache 1.3.19 on Mandrake linux Webware 5.1rc3):
in /etc/httpd/conf/vhosts/orvill.conf:
<VirtualHost orvill.mojo>
...
...
<Location /WKorvill>
WKServer localhost 8086
SetHandler webkit-handler
</Location>
</VirtualHost>
in /etc/httpd/conf/vhosts/homey.conf:
<VirtualHost homey.mojo>
...
...
<Location /WKhomey>
WKServer localhost 8086
SetHandler webkit-handler
</Location>
</VirtualHost>
And in Webware/WebKit/Configs/Application.config in the Contexts
section:
'WKhomey': '/home/virtual/homey/WKhomey',
'WKorvill': '/home/virtual/orvill/WKitorvill',
--
fdj
|